mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
SHADOW_CONTROL_OP_OFF should be checkign whether shadow mode
is actually currently enabled. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
c4da02a2ab
commit
76866c7be5
2 files changed
+10
-4
No files matched your search
@@ -1381,8 +1381,11 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
|
||||
switch ( op )
|
||||
{
|
||||
case DOM0_SHADOW_CONTROL_OP_OFF:
|
||||
__shadow_sync_all(d);
|
||||
__shadow_mode_disable(d);
|
||||
if ( shadow_mode_enabled(d) )
|
||||
{
|
||||
__shadow_sync_all(d);
|
||||
__shadow_mode_disable(d);
|
||||
}
|
||||
break;
|
||||
|
||||
case DOM0_SHADOW_CONTROL_OP_ENABLE_TEST:
|
||||
|
||||
@@ -1290,8 +1290,11 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
|
||||
switch ( op )
|
||||
{
|
||||
case DOM0_SHADOW_CONTROL_OP_OFF:
|
||||
__shadow_sync_all(d);
|
||||
__shadow_mode_disable(d);
|
||||
if ( shadow_mode_enabled(d) )
|
||||
{
|
||||
__shadow_sync_all(d);
|
||||
__shadow_mode_disable(d);
|
||||
}
|
||||
break;
|
||||
|
||||
case DOM0_SHADOW_CONTROL_OP_ENABLE_TEST:
|
||||
|
||||