Nested PAPR API (KVM on PowerVM)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest14 patches 19 repliesIn review
- v415 patches 22 repliesSuperseded
- v315 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 14 patches | 11 replies | Superseded | |
| v1 | 15 patches | 31 replies | Superseded |
Changelog from the cover letter
v5: addressed review comments from Nick on v4
v4: https://lore.kernel.org/qemu-devel/[email protected]/
v3: https://lore.kernel.org/qemu-devel/[email protected]/
v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | spapr: nested: register nested-hv api hcalls only for cap-nested-hvhw/ hw/ hw/ +2 more | +50 | 0 replies | |
| 2/14 | spapr: nested: move nested part of spapr_get_pate into spapr_nested.chw/ hw/ include/ | +40 | 0 replies | |
| 3/14 | spapr: nested: Introduce SpaprMachineStateNested to store related info.hw/ include/ include/ | +11 | 0 replies | |
| 4/14 | spapr: nested: keep nested-hv related code restricted to its API.hw/ hw/ include/ | +30 | 1 reply | |
| 5/14 | spapr: nested: Document Nested PAPR APIdocs/ | +119 | 1 reply | |
| 6/14 | spapr: nested: Introduce H_GUEST_[GET|SET]_CAPABILITIES hcalls.hw/ include/ include/ | +130 | 1 reply | |
| 7/14 | spapr: nested: Introduce H_GUEST_[CREATE|DELETE] hcalls.hw/ include/ include/ | +113 | 1 reply | |
| 8/14 | spapr: nested: Introduce H_GUEST_CREATE_VCPU hcall.hw/ include/ include/ | +71 | 1 reply | |
| 9/14 | spapr: nested: Extend nested_ppc_state for nested PAPR APIhw/ include/ target/ | +158 | 1 reply | |
| 10/14 | spapr: nested: Initialize the GSB elements lookup table.hw/ include/ | +796 | 1 reply | |
| 11/14 | spapr: nested: Introduce H_GUEST_[GET|SET]_STATE hcalls.hw/ include/ include/ | +294 | 1 reply | |
| 12/14 | spapr: nested: Use correct source for parttbl info for nested PAPR API.hw/ hw/ include/ | +29 | 2 replies | |
| 13/14 | spapr: nested: Introduce H_GUEST_RUN_VCPU hcall.hw/ hw/ target/ | +316 | 1 reply | |
| 14/14 | spapr: nested: Introduce cap-nested-papr for Nested PAPR APIhw/ hw/ hw/ +1 more | +74 | 7 replies |
Reviews trailers per patch
All 14 patches have a Reviewed-by or Acked-by.
| Patch | Nicholas Piggin |
|---|---|
| 1/14 | R-b |
| 2/14 | R-b |
| 3/14 | R-b |
| 4/14 | R-b |
| 5/14 | R-b |
| 6/14 | R-b |
| 7/14 | R-b |
| 8/14 | R-b |
| 9/14 | A-b |
| 10/14 | R-b |
| 11/14 | R-b |
| 12/14 | R-b |
| 13/14 | R-b |
| 14/14 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/14] Nested PAPR API (KVM on PowerVM)
There is an existing Nested-HV API to enable nested guests on powernv machines. However, that is not supported on pseries/PowerVM LPARs. This patch series implements required hcall interfaces to enable nested guests with KVM on PowerVM.
Unlike Nested-HV, with this API, entire L2 state is retained by L0 during guest entry/exit and uses pre-defined Guest State Buffer (GSB) format to communicate guest state between L1 and L2 via L0.
L0 here refers to the phyp/PowerVM, or launching a Qemu TCG L0 with the newly introduced option cap-nested-papr=true.
L1 refers to the LPAR host on PowerVM or Linux booted on Qemu TCG with above mentioned option cap-nested-papr=true.
L2 refers to nested guest running on top of L1 using KVM.
No SW changes needed for Qemu running in L1 Linux as well as L2 Kernel.
Linux Kernel side support is already merged upstream:
---
commit 19d31c5f115754c369c0995df47479c384757f82
Author: Jordan Niethe <[email protected]> Date: Thu Sep 14 13:05:59 2023 +1000
KVM: PPC: Add support for nestedv2 guests
---
For more details, documentation can be referred in either of patch series.
There are scripts available to assist in setting up an environment for testing nested guests at https://github.com/iamjpn/kvm-powervm-test
A tree with this series is available at:
https://github.com/planetharsh/qemu/tree/upstream-0305-v5
Thanks to Michael Neuling, Shivaprasad Bhat, Amit Machhiwal, Kautuk Consul, Vaibhav Jain and Jordan Niethe.
Changelog:
v5: addressed review comments from Nick on v4
v4: https://lore.kernel.org/qemu-devel/[email protected]/
v3: https://lore.kernel.org/qemu-devel/[email protected]/
v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Harsh Prateek Bora (14):
spapr: nested: register nested-hv api hcalls only for cap-nested-hv
spapr: nested: move nested part of spapr_get_pate into spapr_nested.c
spapr: nested: Introduce SpaprMachineStateNested to store related
info.
spapr: nested: keep nested-hv related code restricted to its API.
spapr: nested: Document Nested PAPR API
spapr: nested: Introduce H_GUEST_[GET|SET]_CAPABILITIES hcalls.
spapr: nested: Introduce H_GUEST_[CREATE|DELETE] hcalls.
spapr: nested: Introduce H_GUEST_CREATE_VCPU hcall.
spapr: nested: Extend nested_ppc_state for nested PAPR API
spapr: nested: Initialize the GSB elements lookup table.
spapr: nested: Introduce H_GUEST_[GET|SET]_STATE hcalls.
spapr: nested: Use correct source for parttbl info for nested PAPR
API.
spapr: nested: Introduce H_GUEST_RUN_VCPU hcall.
spapr: nested: Introduce cap-nested-papr for Nested PAPR API
docs/devel/nested-papr.txt | 119 +++ include/hw/ppc/spapr.h | 27 +- include/hw/ppc/spapr_nested.h | 428 ++++++++- target/ppc/cpu.h | 4 + hw/ppc/ppc.c | 10 + hw/ppc/spapr.c | 35 +- hw/ppc/spapr_caps.c | 62 ++ hw/ppc/spapr_hcall.c | 24 +- hw/ppc/spapr_nested.c | 1550 ++++++++++++++++++++++++++++++++- 9 files changed, 2204 insertions(+), 55 deletions(-) create mode 100644 docs/devel/nested-papr.txt
Signature · 1 line
2.39.3