]> xenbits.xensource.com Git - xen.git/commit
evtchn/fifo: map correct pages when guest is HVM
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Dec 2013 09:51:24 +0000 (10:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Dec 2013 09:51:24 +0000 (10:51 +0100)
commitcb84b989ee11d2368ec78e9669bb72f8c7a95c03
tree392a2c0d9e0807fa6c8b61bacfa2bf446100e54e
parente423b5cd60ff95ba3680e2e4a8440d4d19b2b13e
evtchn/fifo: map correct pages when guest is HVM

If a HVM guest attempts to use the FIFO-based ABI it will not receive
any events and destroying the guest may crash Xen or trigger an assert
when attempting to unmap a control block page.  This occurs because
Xen maps the wrong page for both the control blocks and the event
arrays.

In map_guest_page(), use the MFN of the guest's page and not the GFN
when calling map_domain_page_global().

Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
xen/common/event_fifo.c