Re: [PATCH 0/7] Consolidate vcpu ioctl locking
Carsten Otte <[email protected]> Fri, 21 May 2010 07:35:03 +0000
| Newsgroups | org.kernel.vger.kvm-ia64,org.kernel.vger.kvm,org.kernel.vger.kvm-ppc |
|---|---|
| Message-ID | <[email protected]> |
On 15.05.2010 10:26, Alexander Graf wrote: > On S390, I'm also still sceptical if the implementation we have really works. A device injects an S390_INTERRUPT with its address and on the next vcpu_run, an according interrupt is issued. But what happens if two devices trigger an S390_INTERRUPT before the vcpu_run? We'd have lost an interrupt by then... We're safe on that: the interrupt info field in both struct kvm (for floating interrupts) and struct vcpu (for cpu local interrupts) have their own locking and can queue up interrupts. cheers, Carsten