]> xenbits.xensource.com Git - xen.git/commit
ioreq-server: handle the lack of a default emulator properly
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 1 Oct 2014 09:37:06 +0000 (11:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 1 Oct 2014 09:37:06 +0000 (11:37 +0200)
commit3b586fc67d5eb2c3a18cdd3febc25c09de2a11a7
tree13d0ea1802feb17926f2b4eafdd496dd71cd844d
parent96720ccf3ad1b6cbe7c11069a3bc730bd0fe7fa3
ioreq-server: handle the lack of a default emulator properly

I started porting QEMU over to use the new ioreq server API and hit a
problem with PCI bus enumeration. Because, with my patches, QEMU only
registers to handle config space accesses for the PCI device it implements
all other attempts by the guest to access 0xcfc go nowhere and this was
causing the vcpu to wedge up because nothing was completing the I/O.

This patch introduces an I/O completion handler into the hypervisor for the
case where no ioreq server matches a particular request. Read requests are
completed with 0xf's in the data buffer, writes and all other I/O req types
are ignored.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c