]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: enable platform-pci only in a Xen guest
authorOlaf Hering <olaf@aepfle.de>
Tue, 10 Jul 2012 13:31:39 +0000 (15:31 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Jul 2012 23:07:46 +0000 (19:07 -0400)
commitfd2c35df673fb3ef145d6cdffdb32af9cd17ebe0
treea585695f50b474225f099196606317161ae8ac6f
parent1536b342c11caf5ca369c222299d399354b30796
xen: enable platform-pci only in a Xen guest

While debugging kexec issues in a PVonHVM guest I modified
xen_hvm_platform() to return false to disable all PV drivers. This
caused a crash in platform_pci_init() because it expects certain data
structures to be initialized properly.

To avoid such a crash make sure the driver is initialized only if
running in a Xen guest.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/platform-pci.c