arm64: hyperv: Add Realm support for Hyper-V
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest6 patches 20 repliesIn review
- v56 patches 9 repliesSuperseded
- v46 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 6 patches | 2 replies | Superseded | |
| v2 | 6 patches | 6 replies | Superseded | |
| v1 RFC | 6 patches | 6 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | arm64: rsi: Add RSI host call structure and helper functioninclude/ include/ | +29 | 2 replies | |
| 2/6 | arm64: hyperv: Detect Hyper-V via RSI host call in CCA Realmsarch/ | +25 | 3 replies | |
| 3/6 | arm64: hyperv: Add per-CPU RSI host call infrastructure for CCA Realmsarch/ arch/ | +29 | 2 replies | |
| 4/6 | Drivers: hv: Mark shared memory as decrypted for CCA Realmsarch/ drivers/ include/ | +19 | 11 replies | |
| 5/6 | arm64: hyperv: Route hypercalls through RSI host call in CCA Realmsarch/ | +121 | 0 replies | |
| 6/6 | arm64: hyperv: Implement hv_is_isolation_supported() for CCA Realmsarch/ | +5 | 2 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Michael Kelley | Catalin Marinas |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | |
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/6] arm64: hyperv: Add Realm support for Hyper-V
Realms (CoCo VMs on ARM) require host calls to be routed through the RMM (Realm Management Monitor) via the RSI (Realm Service Interface). This series implements most of the necessary changes to support Realms on Hyper-V.
One required change is not included in this series. The two buffers allocated via vzalloc() in netvsc_init_buf() cannot be decrypted in vmbus_establish_gpadl(). Currently only linearly mapped memory can be decrypted.
This patch series was tested by booting a Realm on Cobalt 200 running Windows. I tested 4KB and 64KB page size. I replaced vzalloc() in netvsc_init_buf() with alloc_pages_node() -> set_memory_decrypted() -> vmap() in my testing as a workaround for the issue mentioned above [1].
Changes since v1 [2]:
Patch 1: Add explicit padding to the RSI host call structure Patch 3: Change from a per-cpu pointer lazily allocated to an array
of host call structs indexed by cpu id
Patch 4: Align input_page + output_page allocation to PAGE_SIZE since
that is the smallest unit of memory that can be decrypted
~Remove KASAN tags before passing address to
set_memory_decrypted() since __is_lm_address() does pointer arithmetic.~ (reverted in v3)
Patch 5: Add a helper function to reduce repetition
Check for NULL before indexing into host call array
Changes since v2 [3]:
Patch 3: Remove hv_hostcall_free() and inline the logic for simplicity
Reorder edits to keep #include line at the end of the file
Patch 4: Remove kasan_reset_tag()
Changes since v3 [4]:
Rebased onto arm64 for-next/smccc-bus which includes moving RSI header files out of arch/arm64 [5]
Changes since v4 [6]:
Patch 1, 2, 4: Fix commit message to reflect the new header file names Patch 5: Remove extra blank line
Changes since v5 [7]:
Patch 2: Move Realm hypervisor detection out of the generic
arm_smccc_hypervisor_has_uuid() into hyperv_detect_via_smccc() so other SMCCC users are unaffected
Patch 3: Drop the <linux/arm-rsi-cmds.h> include, now added in patch 2
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/[email protected]/
[5] https://lore.kernel.org/all/[email protected]/
[6] https://lore.kernel.org/all/[email protected]/
[7] https://lore.kernel.org/all/[email protected]/
Kameron Carr (6):
arm64: rsi: Add RSI host call structure and helper function
arm64: hyperv: Detect Hyper-V via RSI host call in CCA Realms
arm64: hyperv: Add per-CPU RSI host call infrastructure for CCA Realms
Drivers: hv: Mark shared memory as decrypted for CCA Realms
arm64: hyperv: Route hypercalls through RSI host call in CCA Realms
arm64: hyperv: Implement hv_is_isolation_supported() for CCA Realms
arch/arm64/hyperv/hv_core.c | 155 +++++++++++++++++++++++------- arch/arm64/hyperv/mshyperv.c | 62 +++++++++++- arch/arm64/include/asm/mshyperv.h | 4 + drivers/hv/hv_common.c | 17 +++- include/asm-generic/mshyperv.h | 1 + include/linux/arm-rsi-cmds.h | 22 +++++ include/linux/arm-smccc-rsi.h | 7 ++ 7 files changed, 228 insertions(+), 40 deletions(-)
base-commit: bce57945f5e7207960b2bd567a6e880f90258ffb
Signature · 1 line
2.45.4