xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path
@ 2017-11-08  9:07 Juergen Gross
  0 siblings, 0 replies; 4+ messages in thread
From: Juergen Gross @ 2017-11-08  9:07 UTC (permalink / raw)
  To: linux-kernel, x86, kvm, xen-devel
  Cc: Juergen Gross, len.brown, rkrcmar, rjw, mingo, pavel, hpa,
	pbonzini, tglx, boris.ostrovsky

Booting a Xen PVH guest requires a special boot entry as it is
mandatory to setup some Xen-specific interfaces rather early. When grub
or OVMF are used as boot loaders, however, those will fill the boot
parameters in zeropage and there is no longer a need to do something
PVH specific in the early boot path.

This patch series adds support for that scenario by identifying PVH
environment and doing the required init steps via Xen hooks instead of
using a dedicated boot entry.

The dedicated entry is still needed for support of Dom0 running in PVH
mode as in this case there is no grub or OVMF involved for filling in
the boot parameters.

Juergen Gross (3):
  x86/acpi: add test for ACPI_FADT_NO_VGA
  x86: add guest_late_init hook to hypervisor_x86 structure
  x86/xen: use guest_late_init to detect Xen PVH guest

 arch/x86/include/asm/hypervisor.h | 11 +++++++++++
 arch/x86/include/asm/kvm_para.h   |  2 --
 arch/x86/include/asm/x86_init.h   |  1 +
 arch/x86/kernel/acpi/boot.c       |  5 +++++
 arch/x86/kernel/kvm.c             |  3 ++-
 arch/x86/kernel/setup.c           |  2 +-
 arch/x86/xen/enlighten_hvm.c      | 24 ++++++++++++++++++++++--
 arch/x86/xen/enlighten_pvh.c      |  9 ---------
 8 files changed, 42 insertions(+), 15 deletions(-)

-- 
2.12.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path
       [not found]   ` <0d04d8cd-41e6-31bd-f5e6-8d1f6fd60efb@suse.com>
@ 2017-11-08 13:47     ` Boris Ostrovsky
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Ostrovsky @ 2017-11-08 13:47 UTC (permalink / raw)
  To: Juergen Gross, linux-kernel, x86, kvm, xen-devel
  Cc: len.brown, rkrcmar, rjw, mingo, pavel, hpa, pbonzini, tglx

On 11/08/2017 08:40 AM, Juergen Gross wrote:
> On 08/11/17 14:37, Boris Ostrovsky wrote:
>> On 11/08/2017 04:07 AM, Juergen Gross wrote:
>>> Booting a Xen PVH guest requires a special boot entry as it is
>>> mandatory to setup some Xen-specific interfaces rather early. When grub
>>> or OVMF are used as boot loaders, however, those will fill the boot
>>> parameters in zeropage and there is no longer a need to do something
>>> PVH specific in the early boot path.
>>>
>>> This patch series adds support for that scenario by identifying PVH
>>> environment and doing the required init steps via Xen hooks instead of
>>> using a dedicated boot entry.
>>>
>>> The dedicated entry is still needed for support of Dom0 running in PVH
>>> mode as in this case there is no grub or OVMF involved for filling in
>>> the boot parameters.
>> We are going to continue supporting direct boot of unprivileged guests
>> too so this entry point will be needed not for dom0 only.
> Sure, but using e.g. grub in this case would be an alternative. For Dom0
> this alternative isn't existing. So this entry is mandatory, not a "nice
> to have".

Right, I was just pointing out that the way the message is phrased makes
it sounds (to me at least) as if dom0 is the only reason for the
dedicated entry point.

-boris

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path
       [not found] ` <875b3992-c797-b109-6eb2-819e52811eca@oracle.com>
@ 2017-11-08 13:40   ` Juergen Gross
       [not found]   ` <0d04d8cd-41e6-31bd-f5e6-8d1f6fd60efb@suse.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Juergen Gross @ 2017-11-08 13:40 UTC (permalink / raw)
  To: Boris Ostrovsky, linux-kernel, x86, kvm, xen-devel
  Cc: len.brown, rkrcmar, rjw, mingo, pavel, hpa, pbonzini, tglx

On 08/11/17 14:37, Boris Ostrovsky wrote:
> On 11/08/2017 04:07 AM, Juergen Gross wrote:
>> Booting a Xen PVH guest requires a special boot entry as it is
>> mandatory to setup some Xen-specific interfaces rather early. When grub
>> or OVMF are used as boot loaders, however, those will fill the boot
>> parameters in zeropage and there is no longer a need to do something
>> PVH specific in the early boot path.
>>
>> This patch series adds support for that scenario by identifying PVH
>> environment and doing the required init steps via Xen hooks instead of
>> using a dedicated boot entry.
>>
>> The dedicated entry is still needed for support of Dom0 running in PVH
>> mode as in this case there is no grub or OVMF involved for filling in
>> the boot parameters.
> 
> We are going to continue supporting direct boot of unprivileged guests
> too so this entry point will be needed not for dom0 only.

Sure, but using e.g. grub in this case would be an alternative. For Dom0
this alternative isn't existing. So this entry is mandatory, not a "nice
to have".


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path
       [not found] <20171108090739.26491-1-jgross@suse.com>
@ 2017-11-08 13:37 ` Boris Ostrovsky
       [not found] ` <875b3992-c797-b109-6eb2-819e52811eca@oracle.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Boris Ostrovsky @ 2017-11-08 13:37 UTC (permalink / raw)
  To: Juergen Gross, linux-kernel, x86, kvm, xen-devel
  Cc: len.brown, rkrcmar, rjw, mingo, pavel, hpa, pbonzini, tglx

On 11/08/2017 04:07 AM, Juergen Gross wrote:
> Booting a Xen PVH guest requires a special boot entry as it is
> mandatory to setup some Xen-specific interfaces rather early. When grub
> or OVMF are used as boot loaders, however, those will fill the boot
> parameters in zeropage and there is no longer a need to do something
> PVH specific in the early boot path.
>
> This patch series adds support for that scenario by identifying PVH
> environment and doing the required init steps via Xen hooks instead of
> using a dedicated boot entry.
>
> The dedicated entry is still needed for support of Dom0 running in PVH
> mode as in this case there is no grub or OVMF involved for filling in
> the boot parameters.

We are going to continue supporting direct boot of unprivileged guests
too so this entry point will be needed not for dom0 only.

-boris

>
> Juergen Gross (3):
>   x86/acpi: add test for ACPI_FADT_NO_VGA
>   x86: add guest_late_init hook to hypervisor_x86 structure
>   x86/xen: use guest_late_init to detect Xen PVH guest
>
>  arch/x86/include/asm/hypervisor.h | 11 +++++++++++
>  arch/x86/include/asm/kvm_para.h   |  2 --
>  arch/x86/include/asm/x86_init.h   |  1 +
>  arch/x86/kernel/acpi/boot.c       |  5 +++++
>  arch/x86/kernel/kvm.c             |  3 ++-
>  arch/x86/kernel/setup.c           |  2 +-
>  arch/x86/xen/enlighten_hvm.c      | 24 ++++++++++++++++++++++--
>  arch/x86/xen/enlighten_pvh.c      |  9 ---------
>  8 files changed, 42 insertions(+), 15 deletions(-)
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-08 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08  9:07 [PATCH 0/3] x86/xen: support booting PVH guest via standard boot path Juergen Gross
     [not found] <20171108090739.26491-1-jgross@suse.com>
2017-11-08 13:37 ` Boris Ostrovsky
     [not found] ` <875b3992-c797-b109-6eb2-819e52811eca@oracle.com>
2017-11-08 13:40   ` Juergen Gross
     [not found]   ` <0d04d8cd-41e6-31bd-f5e6-8d1f6fd60efb@suse.com>
2017-11-08 13:47     ` Boris Ostrovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).