Displaying 1 result from an estimated 1 matches for "mapping_exception".
2009 Aug 06
2
[PATCH] hvm emul: fix cmpxchg emulation to use an atomic operation
...return _mfn(BAD_GFN_TO_MFN);
+
+ ASSERT(mfn_valid(mfn_x(mfn)));
+
+ return mfn;
+}
+
+/* Check that the user is allowed to perform this write.
+ * Returns a mapped pointer to write to, or NULL for error. */
+#define MAPPING_UNHANDLEABLE ((void *)(unsigned long)X86EMUL_UNHANDLEABLE)
+#define MAPPING_EXCEPTION ((void *)(unsigned long)X86EMUL_EXCEPTION)
+#define MAPPING_SILENT_FAIL ((void *)(unsigned long)X86EMUL_OKAY)
+#define emulate_map_dest_failed(rc) ((unsigned long)(rc) <= 3)
+static void *emulate_map_dest(
+ struct vcpu *v,
+ unsigned long vaddr,
+ u32 bytes)
+{
+ unsigned long o...