From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: xen-devel@lists.xen.org
Cc: wei.liu2@citrix.com, andrew.cooper3@citrix.com,
ian.jackson@eu.citrix.com, jbeulich@suse.com,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
roger.pau@citrix.com
Subject: [PATCH v2 00/11] PVH VCPU hotplug support
Date: Wed, 9 Nov 2016 09:39:48 -0500 [thread overview]
Message-ID: <1478702399-14538-1-git-send-email-boris.ostrovsky@oracle.com> (raw)
This series adds support for ACPI-based VCPU hotplug for unprivileged
PVH guests.
New XEN_DOMCTL_set_avail_vcpus is introduced and is called during
guest creation and in response to 'xl vcpu-set' command. This domctl
updates GPE0's status and enable registers and sends an SCI to the
guest using (newly added) VIRQ_SCI.
Main changes in V2:
* Add XEN_X86_EMU_IOREQ_CPUHP flag to indicate need to handle
ACPI accesses in hypervisor
* Add ACPI_CPU_MAP[_LEN] for 0xafee address block
Boris Ostrovsky (11):
x86/domctl: Add XEN_DOMCTL_set_avail_vcpus
acpi: Define ACPI IO registers for PVH guests
pvh: Set online VCPU map to avail_vcpus
acpi: Make pmtimer optional in FADT
acpi: Power and Sleep ACPI buttons are not emulated for PVH guests
acpi: PVH guests need _E02 method
pvh/ioreq: Install handlers for ACPI-related PVH IO accesses
pvh/acpi: Handle ACPI accesses for PVH guests
events/x86: Define SCI virtual interrupt
pvh: Send an SCI on VCPU hotplug event
docs: Describe PVHv2's VCPU hotplug procedure
docs/misc/hvmlite.markdown | 12 +++++
tools/firmware/hvmloader/util.c | 4 +-
tools/flask/policy/modules/dom0.te | 2 +-
tools/flask/policy/modules/xen.if | 4 +-
tools/libacpi/build.c | 7 +++
tools/libacpi/libacpi.h | 2 +
tools/libacpi/mk_dsdt.c | 14 +++---
tools/libacpi/static_tables.c | 28 +++++------
tools/libxc/include/xenctrl.h | 5 ++
tools/libxc/xc_dom_x86.c | 11 +++++
tools/libxl/libxl.c | 10 +++-
tools/libxl/libxl_arch.h | 4 ++
tools/libxl/libxl_arm.c | 6 +++
tools/libxl/libxl_dom.c | 7 +++
tools/libxl/libxl_x86.c | 6 +++
tools/libxl/libxl_x86_acpi.c | 6 +--
xen/arch/x86/domctl.c | 29 +++++++++++
xen/arch/x86/hvm/ioreq.c | 90 +++++++++++++++++++++++++++++++++++
xen/include/asm-x86/domain.h | 8 ++++
xen/include/asm-x86/event.h | 3 +-
xen/include/asm-x86/hvm/domain.h | 6 +++
xen/include/public/arch-arm.h | 11 +++--
xen/include/public/arch-x86/xen-mca.h | 2 -
xen/include/public/arch-x86/xen.h | 8 +++-
xen/include/public/domctl.h | 9 ++++
xen/include/public/hvm/ioreq.h | 13 +++++
xen/xsm/flask/hooks.c | 3 ++
xen/xsm/flask/policy/access_vectors | 2 +
28 files changed, 274 insertions(+), 38 deletions(-)
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2016-11-09 14:39 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 14:39 Boris Ostrovsky [this message]
2016-11-09 14:39 ` [PATCH v2 01/11] x86/domctl: Add XEN_DOMCTL_set_avail_vcpus Boris Ostrovsky
2016-11-09 15:04 ` Andrew Cooper
2016-11-09 15:29 ` Boris Ostrovsky
2016-11-09 19:23 ` Andrew Cooper
2016-11-09 19:47 ` Boris Ostrovsky
2016-11-14 14:59 ` Boris Ostrovsky
2016-11-14 17:17 ` Andrew Cooper
2016-11-14 17:48 ` Boris Ostrovsky
2016-11-14 18:19 ` Andrew Cooper
2016-11-14 18:44 ` Boris Ostrovsky
2016-11-15 16:41 ` Andrew Cooper
2016-11-15 17:04 ` Boris Ostrovsky
2016-11-15 17:30 ` Andrew Cooper
2016-11-15 8:34 ` Jan Beulich
2016-11-15 14:28 ` Boris Ostrovsky
2016-11-15 14:33 ` Jan Beulich
2016-11-15 15:00 ` Boris Ostrovsky
2016-11-09 14:39 ` [PATCH v2 02/11] acpi: Define ACPI IO registers for PVH guests Boris Ostrovsky
2016-11-09 14:48 ` Julien Grall
2016-11-09 14:54 ` Boris Ostrovsky
2016-11-09 14:48 ` Paul Durrant
2016-11-09 14:59 ` Andrew Cooper
2016-11-09 15:14 ` Boris Ostrovsky
2016-11-09 19:58 ` Andrew Cooper
2016-11-09 21:01 ` Boris Ostrovsky
2016-11-14 15:01 ` Boris Ostrovsky
2016-11-14 17:19 ` Andrew Cooper
2016-11-15 8:47 ` Jan Beulich
2016-11-15 14:47 ` Boris Ostrovsky
2016-11-15 15:13 ` Jan Beulich
2016-11-15 15:41 ` Boris Ostrovsky
2016-11-15 15:53 ` Jan Beulich
2016-11-15 16:23 ` Boris Ostrovsky
2016-11-15 16:33 ` Jan Beulich
2016-11-15 16:58 ` Boris Ostrovsky
2016-11-15 16:59 ` Jan Beulich
2016-11-15 18:31 ` Andrew Cooper
2016-11-09 14:39 ` [PATCH v2 03/11] pvh: Set online VCPU map to avail_vcpus Boris Ostrovsky
2016-11-11 19:57 ` Konrad Rzeszutek Wilk
2016-11-12 15:40 ` Wei Liu
2016-11-09 14:39 ` [PATCH v2 04/11] acpi: Make pmtimer optional in FADT Boris Ostrovsky
2016-11-15 8:49 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 05/11] acpi: Power and Sleep ACPI buttons are not emulated for PVH guests Boris Ostrovsky
2016-11-11 19:56 ` Konrad Rzeszutek Wilk
2016-11-15 8:54 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 06/11] acpi: PVH guests need _E02 method Boris Ostrovsky
2016-11-11 19:58 ` Konrad Rzeszutek Wilk
2016-11-15 8:57 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 07/11] pvh/ioreq: Install handlers for ACPI-related PVH IO accesses Boris Ostrovsky
2016-11-09 14:56 ` Paul Durrant
2016-11-11 20:01 ` Konrad Rzeszutek Wilk
2016-11-15 9:04 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 08/11] pvh/acpi: Handle ACPI accesses for PVH guests Boris Ostrovsky
2016-11-09 14:58 ` Paul Durrant
2016-11-11 20:07 ` Konrad Rzeszutek Wilk
2016-11-15 9:24 ` Jan Beulich
2016-11-15 14:55 ` Boris Ostrovsky
2016-11-15 15:17 ` Jan Beulich
2016-11-15 15:44 ` Boris Ostrovsky
2016-11-15 15:56 ` Jan Beulich
2016-11-15 19:19 ` Andrew Cooper
2016-11-15 19:38 ` Boris Ostrovsky
2016-11-15 20:07 ` Andrew Cooper
2016-11-15 20:20 ` Boris Ostrovsky
2016-11-17 0:00 ` Boris Ostrovsky
2016-11-17 0:08 ` Andrew Cooper
2016-11-16 9:23 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 09/11] events/x86: Define SCI virtual interrupt Boris Ostrovsky
2016-11-15 9:29 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 10/11] pvh: Send an SCI on VCPU hotplug event Boris Ostrovsky
2016-11-15 9:36 ` Jan Beulich
2016-11-15 14:57 ` Boris Ostrovsky
2016-11-15 15:18 ` Jan Beulich
2016-11-15 9:38 ` Jan Beulich
2016-11-09 14:39 ` [PATCH v2 11/11] docs: Describe PVHv2's VCPU hotplug procedure Boris Ostrovsky
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=1478702399-14538-1-git-send-email-boris.ostrovsky@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).