aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kernel.c
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
commitfa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863 (patch)
treeb30f57e0f20a6a5b52e621ed967a0d9004a74d5d /xen/common/kernel.c
parent8589463a257a56c0316b002b7d8affc5709e4672 (diff)
downloadxen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.gz
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.bz2
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.zip
Handle shared info (having different layout for native and compatibility
mode guests) accesses. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r--xen/common/kernel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index bf46640526..016270b2c5 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -16,6 +16,9 @@
#include <asm/current.h>
#include <public/nmi.h>
#include <public/version.h>
+#ifdef CONFIG_X86
+#include <asm/shared.h>
+#endif
#ifndef COMPAT
@@ -253,7 +256,7 @@ long register_guest_nmi_callback(unsigned long address)
* If no handler was registered we can 'lose the NMI edge'. Re-assert it
* now.
*/
- if ( d->shared_info->arch.nmi_reason != 0 )
+ if ( arch_get_nmi_reason(d) != 0 )
set_bit(_VCPUF_nmi_pending, &v->vcpu_flags);
#endif