xen: initialize platform-pci even if xen_emul_unplug=never
authorIgor Mammedov <imammedo@redhat.com>
Wed, 21 Mar 2012 14:08:38 +0000 (15:08 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 22 Mar 2012 15:37:11 +0000 (11:37 -0400)
commitb9136d207f0c05c96c6b9c980fa7f7fd541a65a8
treec5782f620475131fbd838cec21376c1a2dad7ff5
parent106b44388d8f76373149c4ea144f717b6d4d9a6d
xen: initialize platform-pci even if xen_emul_unplug=never

When xen_emul_unplug=never is specified on kernel command line
reading files from /sys/hypervisor is broken (returns -EBUSY).
It is caused by xen_bus dependency on platform-pci and
platform-pci isn't initialized when xen_emul_unplug=never is
specified.

Fix it by allowing platform-pci to ignore xen_emul_unplug=never,
and do not intialize xen_[blk|net]front instead.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c
drivers/net/xen-netfront.c
drivers/xen/platform-pci.c