Displaying 1 result from an estimated 1 matches for "emulate_unmap_dest".
Did you mean:
emulate_map_dest
2009 Aug 06
2
[PATCH] hvm emul: fix cmpxchg emulation to use an atomic operation
...SOR));
+ l1e_write(&__linear_l1_table[offset + 1],
+ l1e_from_pfn(mfn_x(mfn2), __PAGE_HYPERVISOR));
+ flush_tlb_local();
+ map += (vaddr & ~PAGE_MASK);
+ }
+
+ return map;
+}
+
+/* Tidy up after the emulated write: undo the mapping */
+static void emulate_unmap_dest(
+ struct vcpu *v,
+ void *addr,
+ u32 bytes,
+ unsigned long vaddr)
+{
+ if ( likely(((vaddr + bytes - 1) & PAGE_MASK) == (vaddr & PAGE_MASK)) )
+ unmap_domain_page(addr);
+ else
+ {
+ unsigned long offset;
+ /* Undo the hacky two-frame contiguous...