direct-io.hg

changeset 4516:cd1ad927dab8

bitkeeper revision 1.1291.1.2 (425bf858UzCNdwL5gna8YNNdZ5iYAA)

The shadow control hypercall can now invoke shadow translate mode.
author mafetter@fleming.research
date Tue Apr 12 16:33:28 2005 +0000 (2005-04-12)
parents 55d679bc8c5d
children edd3d921e879
files xen/arch/x86/shadow.c xen/include/public/dom0_ops.h
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Tue Apr 12 15:40:41 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Tue Apr 12 16:33:28 2005 +0000
     1.3 @@ -1228,6 +1228,11 @@ int shadow_mode_control(struct domain *d
     1.4          rc = __shadow_mode_enable(d, d->arch.shadow_mode|SHM_enable|SHM_log_dirty);
     1.5          break;
     1.6  
     1.7 +    case DOM0_SHADOW_CONTROL_OP_ENABLE_TRANSLATE:
     1.8 +        free_shadow_pages(d);
     1.9 +        rc = __shadow_mode_enable(d, d->arch.shadow_mode|SHM_enable|SHM_translate);
    1.10 +        break;
    1.11 +
    1.12      default:
    1.13          rc = shadow_mode_enabled(d) ? shadow_mode_table_op(d, sc) : -EINVAL;
    1.14          break;
     2.1 --- a/xen/include/public/dom0_ops.h	Tue Apr 12 15:40:41 2005 +0000
     2.2 +++ b/xen/include/public/dom0_ops.h	Tue Apr 12 16:33:28 2005 +0000
     2.3 @@ -242,6 +242,7 @@ typedef struct {
     2.4  #define DOM0_SHADOW_CONTROL_OP_OFF         0
     2.5  #define DOM0_SHADOW_CONTROL_OP_ENABLE_TEST 1
     2.6  #define DOM0_SHADOW_CONTROL_OP_ENABLE_LOGDIRTY 2
     2.7 +#define DOM0_SHADOW_CONTROL_OP_ENABLE_TRANSLATE 3
     2.8  
     2.9  #define DOM0_SHADOW_CONTROL_OP_FLUSH       10     /* table ops */
    2.10  #define DOM0_SHADOW_CONTROL_OP_CLEAN       11