Skip to contentSkip to conversation

docs/hypercall-abi: State that the hypercall page is optional

PATCH In review Andrew Cooper 2 participants 2 messages Apr 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/hypercall-abi: State that the hypercall page is optional

Xen doesn't care (and indeed, cannot feasibly tell) whether a hypercall was initiated from inside or outside a hypercall page.

For SEV-SNP/TDX encrypted VMs, use of a hypercall page would violate the integrity properties wanted.

Explicitly state that the hypercall page is optional.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: George Dunlap <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Anthony PERARD <[email protected]>

---
 docs/guest-guide/x86/hypercall-abi.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
docs/guest-guide/x86/hypercall-abi.rst +2 -1
index 83890e1cb613..8004122ca49d 100644
@@ -79,7 +79,8 @@ Hypercall Page
 ==============
 
 The hypercall page is a page of guest RAM into which Xen will write suitable
-transfer stubs.
+transfer stubs.  It is intended as a convenience for guests, but use of the
+hypercall page is not mandatory for making hypercalls to Xen.
 
 Creating a hypercall page is an isolated operation from Xen's point of view.
 It is the guests responsibility to ensure that the hypercall page, once

base-commit: 6cb501e3e6db36b1b4b6345f5af8adc0a291b404

Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Andrew Cooper

Xen doesn't care (and indeed, cannot feasibly tell) whether a hypercall was initiated from inside or outside a hypercall page.

For SEV-SNP/TDX encrypted VMs, use of a hypercall page would violate the integrity properties wanted.

Explicitly state that the hypercall page is optional.

Quoted 30 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: George Dunlap <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Anthony PERARD <[email protected]>

---
 docs/guest-guide/x86/hypercall-abi.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
docs/guest-guide/x86/hypercall-abi.rst +2 -1
index 83890e1cb613..8004122ca49d 100644
@@ -79,7 +79,8 @@ Hypercall Page
 ==============
 
 The hypercall page is a page of guest RAM into which Xen will write suitable
-transfer stubs.
+transfer stubs.  It is intended as a convenience for guests, but use of the
+hypercall page is not mandatory for making hypercalls to Xen.
 
 Creating a hypercall page is an isolated operation from Xen's point of view.
 It is the guests responsibility to ensure that the hypercall page, once

base-commit: 6cb501e3e6db36b1b4b6345f5af8adc0a291b404

Signature · 1 line
2.30.2