KVM: x86: Allow Qemu/KVM to use PVH entry point
authorMaran Wilson <maran.wilson@oracle.com>
Mon, 10 Dec 2018 19:09:35 +0000 (11:09 -0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 13 Dec 2018 18:41:49 +0000 (13:41 -0500)
commit716ff017a39e552f47de7667ba934d0547ba7535
tree8f9e1f7165dde6f8db3f4f5358c5296d94eeee44
parentd907be2b5b042536d15687ac0a86f27c8c9aebd4
KVM: x86: Allow Qemu/KVM to use PVH entry point

For certain applications it is desirable to rapidly boot a KVM virtual
machine. In cases where legacy hardware and software support within the
guest is not needed, Qemu should be able to boot directly into the
uncompressed Linux kernel binary without the need to run firmware.

There already exists an ABI to allow this for Xen PVH guests and the ABI
is supported by Linux and FreeBSD:

   https://xenbits.xen.org/docs/unstable/misc/pvh.html

This patch enables Qemu to use that same entry point for booting KVM
guests.

Signed-off-by: Maran Wilson <maran.wilson@oracle.com>
Suggested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/Kbuild
arch/x86/platform/pvh/Makefile
arch/x86/platform/pvh/enlighten.c