Re: [PATCH v4 0/6] Nonatomic interrupt injection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On 09/19/2010 11:28 AM, Avi Kivity wrote:
 On 09/19/2010 11:25 AM, Avi Kivity wrote:

Let's assume that this is so (I'll check).

It's trivially so. If a completion causes an interrupt to be raised, the vcpu's apic code is executed in the iothread context.



However, that's a bug even with the optimization removed:

iothread                vcpu
ioapic interrrupt
apic: set isr
                        mov $large_value, cr8
on_vcpu(inject)
                        inject interrupt even though cr8 inhibits it

Setting the isr and injecting the interrupt should be an atomic operation (easily done be running the apic code on the vcpu thread).

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux