diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:20:42 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:20:42 +0100 |
commit | 70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99 (patch) | |
tree | cef3458d0e31fb534979bca3ae0ec3d8563c6514 | |
parent | dd6832985c0ac4dd71b961010fb09916aa69d75a (diff) | |
download | xen-70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99.tar.gz xen-70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99.tar.bz2 xen-70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99.zip |
x86: Fix the build after c/s 18163 (5fbcbee355e2)
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r-- | xen/arch/x86/mm/shadow/multi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 6df3f6e6bb..dec5e9a09f 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -4645,7 +4645,6 @@ static void *emulate_map_dest(struct vcpu *v, u32 bytes, struct sh_emulate_ctxt *sh_ctxt) { - struct segment_register *sreg; unsigned long offset; void *map = NULL; @@ -4658,8 +4657,7 @@ static void *emulate_map_dest(struct vcpu *v, #ifndef NDEBUG /* We don't emulate user-mode writes to page tables */ - sreg = hvm_get_seg_reg(x86_seg_ss, sh_ctxt); - if ( sreg->attr.fields.dpl == 3 ) + if ( hvm_get_seg_reg(x86_seg_ss, sh_ctxt)->attr.fields.dpl == 3 ) { gdprintk(XENLOG_DEBUG, "User-mode write to pagetable reached " "emulate_map_dest(). This should never happen!\n"); |