xen: only check xen_platform_pci_unplug if hvm
authorIgor Mammedov <imammedo@redhat.com>
Tue, 27 Mar 2012 17:31:08 +0000 (19:31 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 6 Apr 2012 16:12:52 +0000 (12:12 -0400)
commite95ae5a4939c52ccab02a49238d5d15d492b2598
tree0b531cd78d48bc56d4046201094e164db7982d4e
parentdf7a3ee29b775edd1c2d75cf0b128b174bd4091e
xen: only check xen_platform_pci_unplug if hvm

commit b9136d207f08
  xen: initialize platform-pci even if xen_emul_unplug=never

breaks blkfront/netfront by not loading them because of
xen_platform_pci_unplug=0 and it is never set for PV guest.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c
drivers/net/xen-netfront.c