aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-11-16 12:42:35 +0000
committerKeir Fraser <keir@xen.org>2010-11-16 12:42:35 +0000
commit43e7d2b21a0ccfdb23de338987edf3da05d50e22 (patch)
treef44146eb250eb1b9b4a3b61a7ac049248340805c /xen/include
parent36ba5243d48c10b2fa0717b26e8f3b2e0e26902b (diff)
downloadxen-43e7d2b21a0ccfdb23de338987edf3da05d50e22.tar.gz
xen-43e7d2b21a0ccfdb23de338987edf3da05d50e22.tar.bz2
xen-43e7d2b21a0ccfdb23de338987edf3da05d50e22.zip
x86 hvm: Make a couple of hypercall state flags per-vcpu
This is a prerequisite for allowing guest descheduling within a hypercall. Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include')
-rw-r--r--xen/include/asm-x86/hvm/guest_access.h3
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h3
-rw-r--r--xen/include/asm-x86/hypercall.h9
3 files changed, 3 insertions, 12 deletions
diff --git a/xen/include/asm-x86/hvm/guest_access.h b/xen/include/asm-x86/hvm/guest_access.h
index f401ac9d8d..7a89e81536 100644
--- a/xen/include/asm-x86/hvm/guest_access.h
+++ b/xen/include/asm-x86/hvm/guest_access.h
@@ -1,9 +1,6 @@
#ifndef __ASM_X86_HVM_GUEST_ACCESS_H__
#define __ASM_X86_HVM_GUEST_ACCESS_H__
-#include <xen/percpu.h>
-DECLARE_PER_CPU(bool_t, hvm_64bit_hcall);
-
unsigned long copy_to_user_hvm(void *to, const void *from, unsigned len);
unsigned long copy_from_user_hvm(void *to, const void *from, unsigned len);
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index 1d72ecfc60..682027fffa 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -63,6 +63,9 @@ struct hvm_vcpu {
bool_t debug_state_latch;
bool_t single_step;
+ bool_t hcall_preempted;
+ bool_t hcall_64bit;
+
u64 asid_generation;
u32 asid;
diff --git a/xen/include/asm-x86/hypercall.h b/xen/include/asm-x86/hypercall.h
index 86377862f1..a6615e895e 100644
--- a/xen/include/asm-x86/hypercall.h
+++ b/xen/include/asm-x86/hypercall.h
@@ -17,15 +17,6 @@
*/
#define MMU_UPDATE_PREEMPTED (~(~0U>>1))
-/*
- * This gets set to a non-zero value whenever hypercall_create_continuation()
- * is used (outside of multicall context; in multicall context the second call
- * from do_multicall() itself will have this effect). Internal callers of
- * hypercall handlers interested in this condition must clear the flag prior
- * to invoking the respective handler(s).
- */
-DECLARE_PER_CPU(char, hc_preempted);
-
extern long
do_event_channel_op_compat(
XEN_GUEST_HANDLE(evtchn_op_t) uop);