search for: emulate_map_dest_fail

Displaying 1 result from an estimated 1 matches for "emulate_map_dest_fail".

2009 Aug 06
2
[PATCH] hvm emul: fix cmpxchg emulation to use an atomic operation
...s 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 offset; + void *map = NULL; + mfn_t mfn1; + mfn_t mfn2; + + mfn1 = emulate_gva_to_mfn(v, vaddr); + if ( !mfn_valid(mfn_x(mfn1)) ) +...