aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 2237a594a8ef..57525e7ed28f 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1339,10 +1339,10 @@ static void svm_intr_assist(struct vcpu_svm *svm)
1339 1339
1340static void kvm_reput_irq(struct vcpu_svm *svm) 1340static void kvm_reput_irq(struct vcpu_svm *svm)
1341{ 1341{
1342 struct kvm_vcpu *vcpu = &svm->vcpu;
1343 struct vmcb_control_area *control = &svm->vmcb->control; 1342 struct vmcb_control_area *control = &svm->vmcb->control;
1344 1343
1345 if ((control->int_ctl & V_IRQ_MASK) && !irqchip_in_kernel(vcpu->kvm)) { 1344 if ((control->int_ctl & V_IRQ_MASK)
1345 && !irqchip_in_kernel(svm->vcpu.kvm)) {
1346 control->int_ctl &= ~V_IRQ_MASK; 1346 control->int_ctl &= ~V_IRQ_MASK;
1347 push_irq(&svm->vcpu, control->int_vector); 1347 push_irq(&svm->vcpu, control->int_vector);
1348 } 1348 }
@@ -1396,8 +1396,8 @@ static void post_kvm_run_save(struct vcpu_svm *svm,
1396 = (svm->vcpu.interrupt_window_open && 1396 = (svm->vcpu.interrupt_window_open &&
1397 svm->vcpu.irq_summary == 0); 1397 svm->vcpu.irq_summary == 0);
1398 kvm_run->if_flag = (svm->vmcb->save.rflags & X86_EFLAGS_IF) != 0; 1398 kvm_run->if_flag = (svm->vmcb->save.rflags & X86_EFLAGS_IF) != 0;
1399 kvm_run->cr8 = svm->vcpu.cr8; 1399 kvm_run->cr8 = get_cr8(&svm->vcpu);
1400 kvm_run->apic_base = svm->vcpu.apic_base; 1400 kvm_run->apic_base = kvm_get_apic_base(&svm->vcpu);
1401} 1401}
1402 1402
1403/* 1403/*