ia64/xen-unstable

diff xen/arch/x86/hvm/hvm.c @ 14181:d39dcdb9cca3

hvm: Only do hvm_disable() on HVM-enabled systems.

Original patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Feb 28 14:44:52 2007 +0000 (2007-02-28)
parents 720afbf74001
children 09a9b6d6c356
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Wed Feb 28 14:34:25 2007 +0000
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Wed Feb 28 14:44:52 2007 +0000
     1.3 @@ -76,6 +76,12 @@ void hvm_enable(struct hvm_function_tabl
     1.4      hvm_enabled = 1;
     1.5  }
     1.6  
     1.7 +void hvm_disable(void)
     1.8 +{
     1.9 +    if ( hvm_enabled )
    1.10 +        hvm_funcs.disable();
    1.11 +}
    1.12 +
    1.13  void hvm_stts(struct vcpu *v)
    1.14  {
    1.15      /* FPU state already dirty? Then no need to setup_fpu() lazily. */