From: Juergen Gross <jgross@suse.com> To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, Juergen Gross <jgross@suse.com>, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, akataria@vmware.com, pbonzini@redhat.com, rkrcmar@redhat.com, boris.ostrovsky@oracle.com, rusty@rustcorp.com.au, devel@linuxdriverproject.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, dmitry.torokhov@gmail.com, xdeguillard@vmware.com, moltmann@vmware.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, linux-pm@vger.kernel.org Subject: [PATCH v2 0/5] x86/xen: support booting PVH guest via standard boot path Date: Thu, 9 Nov 2017 14:27:34 +0100 [thread overview] Message-ID: <20171109132739.23465-1-jgross@suse.com> (raw) 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 mandatory 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. Changes in V2: - added new patches 1 and 2 Cc: kys@microsoft.com Cc: haiyangz@microsoft.com Cc: sthemmin@microsoft.com Cc: akataria@vmware.com Cc: pbonzini@redhat.com Cc: rkrcmar@redhat.com Cc: boris.ostrovsky@oracle.com Cc: rusty@rustcorp.com.au Cc: devel@linuxdriverproject.org Cc: virtualization@lists.linux-foundation.org Cc: kvm@vger.kernel.org Cc: xen-devel@lists.xenproject.org Cc: linux-graphics-maintainer@vmware.com Cc: pv-drivers@vmware.com Cc: dmitry.torokhov@gmail.com Cc: xdeguillard@vmware.com Cc: moltmann@vmware.com Cc: arnd@arndb.de Cc: gregkh@linuxfoundation.org Cc: linux-input@vger.kernel.org Cc: rjw@rjwysocki.net Cc: len.brown@intel.com Cc: pavel@ucw.cz Cc: linux-pm@vger.kernel.org Juergen Gross (5): x86: merge x86_hyper into x86_platform and x86_init x86: add enum for hypervisors to replace x86_hyper 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/hyperv/hv_init.c | 2 +- arch/x86/include/asm/hypervisor.h | 46 +++++++++++----------------- arch/x86/include/asm/kvm_para.h | 2 -- arch/x86/include/asm/x86_init.h | 27 +++++++++++++++++ arch/x86/kernel/acpi/boot.c | 5 +++ arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/cpu/hypervisor.c | 64 +++++++++++++++++++++------------------ arch/x86/kernel/cpu/mshyperv.c | 6 ++-- arch/x86/kernel/cpu/vmware.c | 8 ++--- arch/x86/kernel/kvm.c | 9 +++--- arch/x86/kernel/setup.c | 2 +- arch/x86/kernel/x86_init.c | 10 ++++++ arch/x86/mm/init.c | 2 +- arch/x86/xen/enlighten_hvm.c | 36 +++++++++++++++++----- arch/x86/xen/enlighten_pv.c | 6 ++-- arch/x86/xen/enlighten_pvh.c | 9 ------ drivers/hv/vmbus_drv.c | 2 +- drivers/input/mouse/vmmouse.c | 10 +++--- drivers/misc/vmw_balloon.c | 2 +- include/linux/hypervisor.h | 8 +++-- 20 files changed, 153 insertions(+), 105 deletions(-) -- 2.12.3
WARNING: multiple messages have this Message-ID (diff)
From: Juergen Gross <jgross@suse.com> To: linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, rkrcmar@redhat.com, pv-drivers@vmware.com, akataria@vmware.com, virtualization@lists.linux-foundation.org, pavel@ucw.cz, hpa@zytor.com, tglx@linutronix.de, sthemmin@microsoft.com, x86@kernel.org, moltmann@vmware.com, mingo@redhat.com, linux-graphics-maintainer@vmware.com, linux-input@vger.kernel.org, xen-devel@lists.xenproject.org, len.brown@intel.com, arnd@arndb.de, linux-pm@vger.kernel.org, xdeguillard@vmware.com, haiyangz@microsoft.com, rusty@rustcorp.com.au, pbonzini@redhat.com, boris.ostrovsky@oracle.com, Juergen Gross <jgross@suse.com>, gregkh@linuxfoundation.org, dmitry.torokhov@gmail.com, rjw@rjwysocki.net, devel@linuxdriverproject.org Subject: [PATCH v2 0/5] x86/xen: support booting PVH guest via standard boot path Date: Thu, 9 Nov 2017 14:27:34 +0100 [thread overview] Message-ID: <20171109132739.23465-1-jgross@suse.com> (raw) 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 mandatory 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. Changes in V2: - added new patches 1 and 2 Cc: kys@microsoft.com Cc: haiyangz@microsoft.com Cc: sthemmin@microsoft.com Cc: akataria@vmware.com Cc: pbonzini@redhat.com Cc: rkrcmar@redhat.com Cc: boris.ostrovsky@oracle.com Cc: rusty@rustcorp.com.au Cc: devel@linuxdriverproject.org Cc: virtualization@lists.linux-foundation.org Cc: kvm@vger.kernel.org Cc: xen-devel@lists.xenproject.org Cc: linux-graphics-maintainer@vmware.com Cc: pv-drivers@vmware.com Cc: dmitry.torokhov@gmail.com Cc: xdeguillard@vmware.com Cc: moltmann@vmware.com Cc: arnd@arndb.de Cc: gregkh@linuxfoundation.org Cc: linux-input@vger.kernel.org Cc: rjw@rjwysocki.net Cc: len.brown@intel.com Cc: pavel@ucw.cz Cc: linux-pm@vger.kernel.org Juergen Gross (5): x86: merge x86_hyper into x86_platform and x86_init x86: add enum for hypervisors to replace x86_hyper 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/hyperv/hv_init.c | 2 +- arch/x86/include/asm/hypervisor.h | 46 +++++++++++----------------- arch/x86/include/asm/kvm_para.h | 2 -- arch/x86/include/asm/x86_init.h | 27 +++++++++++++++++ arch/x86/kernel/acpi/boot.c | 5 +++ arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/cpu/hypervisor.c | 64 +++++++++++++++++++++------------------ arch/x86/kernel/cpu/mshyperv.c | 6 ++-- arch/x86/kernel/cpu/vmware.c | 8 ++--- arch/x86/kernel/kvm.c | 9 +++--- arch/x86/kernel/setup.c | 2 +- arch/x86/kernel/x86_init.c | 10 ++++++ arch/x86/mm/init.c | 2 +- arch/x86/xen/enlighten_hvm.c | 36 +++++++++++++++++----- arch/x86/xen/enlighten_pv.c | 6 ++-- arch/x86/xen/enlighten_pvh.c | 9 ------ drivers/hv/vmbus_drv.c | 2 +- drivers/input/mouse/vmmouse.c | 10 +++--- drivers/misc/vmw_balloon.c | 2 +- include/linux/hypervisor.h | 8 +++-- 20 files changed, 153 insertions(+), 105 deletions(-) -- 2.12.3
next reply other threads:[~2017-11-09 13:28 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-09 13:27 Juergen Gross [this message] 2017-11-09 13:27 ` [PATCH v2 0/5] x86/xen: support booting PVH guest via standard boot path Juergen Gross 2017-11-09 13:27 ` [PATCH v2 1/5] x86: merge x86_hyper into x86_platform and x86_init Juergen Gross 2017-11-09 13:27 ` Juergen Gross 2017-11-09 13:27 ` Juergen Gross 2017-11-09 13:27 ` Juergen Gross 2017-11-10 9:41 ` [tip:x86/platform] x86/virt, x86/platform: Merge 'struct x86_hyper' into 'struct x86_platform' and 'struct x86_init' tip-bot for Juergen Gross 2017-11-09 13:27 ` [PATCH v2 2/5] x86: add enum for hypervisors to replace x86_hyper Juergen Gross 2017-11-09 13:27 ` Juergen Gross 2017-11-09 17:57 ` Xavier Deguillard 2017-11-09 17:57 ` Xavier Deguillard 2017-11-09 17:57 ` Xavier Deguillard 2017-11-10 9:42 ` [tip:x86/platform] x86/virt: Add " tip-bot for Juergen Gross 2017-11-10 18:26 ` [PATCH v2 2/5] x86: add " Dmitry Torokhov 2017-11-10 18:26 ` Dmitry Torokhov 2017-11-10 18:26 ` Dmitry Torokhov 2017-11-10 20:39 ` KY Srinivasan via Virtualization 2017-11-10 20:39 ` KY Srinivasan 2017-11-10 20:39 ` KY Srinivasan 2017-11-10 20:39 ` KY Srinivasan 2017-11-10 20:39 ` KY Srinivasan 2017-11-09 13:27 ` Juergen Gross 2017-11-09 13:27 ` Juergen Gross 2017-11-09 13:27 ` [PATCH v2 3/5] x86/acpi: add test for ACPI_FADT_NO_VGA Juergen Gross 2017-11-10 9:42 ` [tip:x86/platform] x86/virt, x86/acpi: Add " tip-bot for Juergen Gross 2017-11-09 13:27 ` [PATCH v2 4/5] x86: add guest_late_init hook to hypervisor_x86 structure Juergen Gross 2017-11-10 9:43 ` [tip:x86/platform] x86/virt, x86/platform: Add ->guest_late_init() callback " tip-bot for Juergen Gross 2017-11-09 13:27 ` [PATCH v2 5/5] x86/xen: use guest_late_init to detect Xen PVH guest Juergen Gross 2017-11-10 9:43 ` [tip:x86/platform] x86/virt/xen: Use " tip-bot for Juergen Gross 2017-11-09 13:27 ` [PATCH v2 5/5] x86/xen: use " Juergen Gross -- strict thread matches above, loose matches on Subject: below -- 2017-11-09 13:27 [PATCH v2 0/5] x86/xen: support booting PVH guest via standard boot path Juergen Gross
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20171109132739.23465-1-jgross@suse.com \ --to=jgross@suse.com \ --cc=akataria@vmware.com \ --cc=arnd@arndb.de \ --cc=boris.ostrovsky@oracle.com \ --cc=devel@linuxdriverproject.org \ --cc=dmitry.torokhov@gmail.com \ --cc=gregkh@linuxfoundation.org \ --cc=haiyangz@microsoft.com \ --cc=hpa@zytor.com \ --cc=kvm@vger.kernel.org \ --cc=kys@microsoft.com \ --cc=len.brown@intel.com \ --cc=linux-graphics-maintainer@vmware.com \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=mingo@redhat.com \ --cc=moltmann@vmware.com \ --cc=pavel@ucw.cz \ --cc=pbonzini@redhat.com \ --cc=pv-drivers@vmware.com \ --cc=rjw@rjwysocki.net \ --cc=rkrcmar@redhat.com \ --cc=rusty@rustcorp.com.au \ --cc=sthemmin@microsoft.com \ --cc=tglx@linutronix.de \ --cc=virtualization@lists.linux-foundation.org \ --cc=x86@kernel.org \ --cc=xdeguillard@vmware.com \ --cc=xen-devel@lists.xenproject.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.