aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorYang Zhang <yang.z.zhang@Intel.com>2013-04-11 07:25:16 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2013-04-16 15:32:41 -0400
commit5a71785dde307f6ac80e83c0ad3fd694912010a1 (patch)
treecb765262ff74e583d314ef3f14b4f41a506b2cb2 /arch/x86/kvm/x86.c
parenta20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3 (diff)
KVM: VMX: Use posted interrupt to deliver virtual interrupt
If posted interrupt is avaliable, then uses it to inject virtual interrupt to guest. Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 276b4a9a5605..50e2e10b8041 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2692,6 +2692,7 @@ void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu)
2692static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu, 2692static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu,
2693 struct kvm_lapic_state *s) 2693 struct kvm_lapic_state *s)
2694{ 2694{
2695 kvm_x86_ops->sync_pir_to_irr(vcpu);
2695 memcpy(s->regs, vcpu->arch.apic->regs, sizeof *s); 2696 memcpy(s->regs, vcpu->arch.apic->regs, sizeof *s);
2696 2697
2697 return 0; 2698 return 0;