]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
vm_event: Fix regression caused by b701ccc8
authorTamas K Lengyel <tlengyel@novetta.com>
Fri, 5 Feb 2016 21:20:16 +0000 (14:20 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 8 Feb 2016 15:10:15 +0000 (15:10 +0000)
commitc9c430df0062e0f6a1d95c5d3eb8af267183c6f0
tree28bbd3d09d14b34a43cb9d193740956ab7a4cf2d
parent1ac81bb7166b79b6555290547d4effff305c74d0
vm_event: Fix regression caused by b701ccc8

When xc_map_foreign_batch got deprecated reinitializing vm_event on a domain
where an event listener was previously active broke as it relied on the flag
XEN_DOMCTL_PFINFO_XTAB to indicate that the magic page is not in the physmap.
Manually check the gpfn type, add it to the physmap if needed, and only then
try to map it.

Signed-off-by: Tamas K Lengyel <tlengyel@novetta.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_vm_event.c