diff options
author | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-08-20 07:43:55 +0000 |
---|---|---|
committer | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-08-20 07:43:55 +0000 |
commit | 2d02990327542b7a3bbc1f3c0ca277e78794ce16 (patch) | |
tree | 851560849e62c61448d621ff06fc5ccebe9c49b0 | |
parent | 50726278a5d66fcb044ea50cd053de0f445124d0 (diff) | |
download | xen-2d02990327542b7a3bbc1f3c0ca277e78794ce16.tar.gz xen-2d02990327542b7a3bbc1f3c0ca277e78794ce16.tar.bz2 xen-2d02990327542b7a3bbc1f3c0ca277e78794ce16.zip |
bitkeeper revision 1.1159.45.7 (4125abbbALjz7ttvo9UYMDVzVkYmFA)
misc cleanups
-rwxr-xr-x | tools/check/chk | 4 | ||||
-rw-r--r-- | xen/arch/x86/shadow.c | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/check/chk b/tools/check/chk index 632da544cb..16de110bc1 100755 --- a/tools/check/chk +++ b/tools/check/chk @@ -12,6 +12,8 @@ function usage { exit 1 } +export PATH=${PATH}:/sbin:/usr/sbin + case $1 in build) check="CHECK-BUILD" @@ -67,4 +69,4 @@ if [ "$failed" == "1" ] ; then else echo "OK" >> ${info} exit 0 -fi
\ No newline at end of file +fi diff --git a/xen/arch/x86/shadow.c b/xen/arch/x86/shadow.c index 06445943ab..e1fac065d0 100644 --- a/xen/arch/x86/shadow.c +++ b/xen/arch/x86/shadow.c @@ -440,13 +440,10 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc) unsigned int cmd = sc->op; int rc = 0; - if (d == current) - printk("Attempt to control your _own_ shadow tables. I hope you know what you're doing!\n"); + domain_pause(d); + synchronise_pagetables(~0UL); - domain_pause(d); - synchronise_pagetables(d->processor); - - spin_lock(&d->mm.shadow_lock); + spin_lock(&d->mm.shadow_lock); if ( cmd == DOM0_SHADOW_CONTROL_OP_OFF ) { @@ -475,7 +472,7 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc) spin_unlock(&d->mm.shadow_lock); - domain_unpause(d); + domain_unpause(d); return rc; } |