Re: [PATCH 3/5]KVM:x86, apicv: enable virtual interrupt delivery for VMX

2012-09-16 Thread Avi Kivity
On 09/14/2012 05:17 PM, Li, Jiongxi wrote: -static void apic_send_ipi(struct kvm_lapic *apic) +/* + * this interface assumes a trap-like exit, which has already +finished + * desired side effect including vISR and vPPR update. + */ +void kvm_apic_set_eoi(struct kvm_vcpu *vcpu, int

RE: [PATCH 3/5]KVM:x86, apicv: enable virtual interrupt delivery for VMX

2012-09-14 Thread Li, Jiongxi
Sorry for the late response -Original Message- From: Avi Kivity [mailto:a...@redhat.com] Sent: Friday, September 07, 2012 12:30 AM To: Li, Jiongxi Cc: kvm@vger.kernel.org Subject: Re: [PATCH 3/5]KVM:x86, apicv: enable virtual interrupt delivery for VMX On 09/05/2012 08:41 AM, Li

Re: [PATCH 3/5]KVM:x86, apicv: enable virtual interrupt delivery for VMX

2012-09-06 Thread Avi Kivity
On 09/05/2012 08:41 AM, Li, Jiongxi wrote: - before returning to guest, RVI should be updated if any pending IRRs process pending interrupts does that for you, so you only need this with KVM_SET_APIC. - EOI exit bitmap controls whether an EOI write should cause VM-Exit. if set, a trap-like

[PATCH 3/5]KVM:x86, apicv: enable virtual interrupt delivery for VMX

2012-09-04 Thread Li, Jiongxi
- before returning to guest, RVI should be updated if any pending IRRs - EOI exit bitmap controls whether an EOI write should cause VM-Exit. if set, a trap-like induced EOI VM-Exit is triggered. Keep all the bitmaps cleared for now, which should be enough to allow a MSI based device