|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v9 0/7] KVM: x86: Allow Qemu/KVM to use PVH entry point
On 12/11/2018 5:18 AM, Borislav Petkov wrote: On Mon, Dec 10, 2018 at 11:05:34AM -0800, Maran Wilson wrote: Is your question about what options you need to provide to Qemu? Or is your question about the SW implementation choices? Assuming the former... once you have compiled all 3 new binaries (kernel, Qemu, and qboot) then you simply invoke qemu the same way you normally invoke qemu with qboot + kernel binary, except you provide the vmlinux (uncompressed) kernel binary when specifying the "-kernel" parameter. Qemu/qboot will automatically detect that you have provided an ELF binary, find the PVH ELF note to locate the entry point, and proceed to boot the kernel via that method. On the other hand, if you leave all the Qemu options as-is, but simply provide the bzImage (compressed) kernel binary from the same build, Qemu/qboot will boot the way it has always done and not look for PVH. To make it more concrete, here's an example of how I had been invoking PVH boot recently: x86_64-softmmu/qemu-system-x86_64 \ -name testvm01 \ -machine q35,accel=kvm,nvdimm \ -cpu host \ -m 1024,maxmem=20G,slots=2 \ -smp 1 \ -nodefaults \ -kernel binaries/vmlinux \-object memory-backend-file,id=mem0,share,mem-path=binaries/containers.img,size=235929600 \ -device nvdimm,memdev=mem0,id=nv0 \-append 'console=ttyS0,115200,8n1 root=/dev/pmem0p1 panic=1 rw init=/usr/lib/systemd/systemd rootfstype=ext4' \ -bios binaries/bios.bin \ -serial mon:stdio Thanks, -Maran Thx. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |