ia64/xen-unstable

changeset 17109:5adc98ae6861

svm: Fix stupid typo in svm_set_interrupt_shadow().
Signed-off-by: Christoph Egger <christoph.egger@amd.com>

svm: Also return STI *and* MOV-SS blocking from
svm_get_interrupt_shadow().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 25 09:07:24 2008 +0000 (2008-02-25)
parents 200787660b5f
children cd06c0c1bfff
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Fri Feb 22 18:32:41 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Mon Feb 25 09:07:24 2008 +0000
     1.3 @@ -369,14 +369,15 @@ static void svm_fpu_leave(struct vcpu *v
     1.4  static unsigned int svm_get_interrupt_shadow(struct vcpu *v)
     1.5  {
     1.6      struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;
     1.7 -    return (vmcb->interrupt_shadow ? HVM_INTR_SHADOW_MOV_SS : 0);
     1.8 +    return (vmcb->interrupt_shadow ?
     1.9 +            (HVM_INTR_SHADOW_MOV_SS|HVM_INTR_SHADOW_STI) : 0);
    1.10  }
    1.11  
    1.12  static void svm_set_interrupt_shadow(struct vcpu *v, unsigned int intr_shadow)
    1.13  {
    1.14      struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;
    1.15 -    vmcb->interrupt_shadow = !!(vmcb->interrupt_shadow &
    1.16 -                                (HVM_INTR_SHADOW_MOV_SS|HVM_INTR_SHADOW_STI));
    1.17 +    vmcb->interrupt_shadow =
    1.18 +        !!(intr_shadow & (HVM_INTR_SHADOW_MOV_SS|HVM_INTR_SHADOW_STI));
    1.19  }
    1.20  
    1.21  static int svm_guest_x86_mode(struct vcpu *v)