[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation
From: |
David Woodhouse |
Subject: |
Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation |
Date: |
Wed, 25 Oct 2023 20:02:31 +0100 |
User-agent: |
Evolution 3.44.4-0ubuntu2 |
On Wed, 2023-10-25 at 19:56 +0100, Andrew Cooper wrote:
> On 25/10/2023 7:26 pm, David Woodhouse wrote:
>
> > On Wed, 2023-10-25 at 13:20 -0500, Eric Blake wrote:
> >
> > > On Wed, Oct 25, 2023 at 03:50:42PM +0100, David Woodhouse wrote:
> >
> > >
> > > > +
> > > > +Booting Xen PV guests
> > > > +---------------------
> > > > +
> > > > +Booting PV guest kernels is possible by using the Xen PV shim (a
> > > > version of Xen
> > > > +itself, designed to run inside a Xen HVM guest and provide memory
> > > > management
> > > > +services for one guest alone).
> > > > +
> > > > +The Xen binary is provided as the ``-kernel`` and the guest kernel
> > > > itself (or
> > > > +PV Grub image) as the ``-initrd`` image, which actually just means the
> > > > first
> > > > +multiboot "module". For example:
> > > > +
> > > > +.. parsed-literal::
> > > > +
> > > > + |qemu_system| --accel kvm,xen-version=0x40011,kernel-irqchip=split \\
> > > > + -chardev stdio,id=char0 -device xen-console,chardev=char0 \\
> > > > + -display none -m 1G -kernel xen -initrd bzImage \\
> > > > + -append "pv-shim console=xen,pv -- console=hvc0
> > > > root=/dev/xvda1" \\
> > > > + -drive file=${GUEST_IMAGE},if=xen
> > > Is the space between -- and console= intentionsl?
> > Yes, that one is correct. The -- is how you separate Xen's command line
> > (on the left) from the guest kernel command line (on the right).
>
> To expand on this a bit.
>
> Multiboot1 supports multiple modules but only a single command
> line. As one of the modules passed to Xen is the dom0 kernel, we
> need some way to pass it's command line, hence the " -- ".
>
> Multiboot2 and PVH support a command line per module, which is the
> preferred way to pass the commandlines, given a choice.
>
Thanks.
Indeed, I had *originally* thought I was going to need to implement
Multiboot2 in qemu in order to boot Shim + PV guest, but it turns out
we can make it work with just Multiboot1 support.
As long as the guest kernel doesn't want an *actual* initrd, that is ;)
smime.p7s
Description: S/MIME cryptographic signature
- [PATCH v3 19/28] hw/xen: update Xen PV NIC to XenDevice model, (continued)
- [PATCH v3 19/28] hw/xen: update Xen PV NIC to XenDevice model, David Woodhouse, 2023/10/25
- [PATCH v3 02/28] i386/xen: fix per-vCPU upcall vector for Xen emulation, David Woodhouse, 2023/10/25
- [PATCH v3 21/28] xen-platform: unplug AHCI disks, David Woodhouse, 2023/10/25
- [PATCH v3 01/28] i386/xen: Don't advertise XENFEAT_supervisor_mode_kernel, David Woodhouse, 2023/10/25
- [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/25
- [PATCH v3 03/28] hw/xen: select kernel mode for per-vCPU event channel upcall vector, David Woodhouse, 2023/10/25
- [PATCH v3 28/28] docs: update Xen-on-KVM documentation, David Woodhouse, 2023/10/25
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, Eric Blake, 2023/10/25
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, David Woodhouse, 2023/10/25
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, Andrew Cooper, 2023/10/25
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation,
David Woodhouse <=
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, Kevin Wolf, 2023/10/26
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, David Woodhouse, 2023/10/26
- Re: [PATCH v3 28/28] docs: update Xen-on-KVM documentation, David Woodhouse, 2023/10/26