KVM: x86: Document APIC base memory hole constraint
Status from this message: Applied to kvm-x86 generic, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v14 patches 9 repliesSuperseded
Changes in v2 from the cover letter
- Dropped enforcement patches (3/4, 4/4) per review feedback.
- Patch 1/2: Reworded to avoid implying that KVM_CREATE_IRQCHIP is mandatory.
- Patch 2/2: Reworded to reflect that the APIC access page is not installed in every case. Added note about KVM_CAP_SPLIT_IRQCHIP having the same constraint.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: x86: Document that KVM_CREATE_IRQCHIP must precede vcpu creationDocumentation/ | +2 | 0 replies | |
| 2/2 | KVM: x86: Document APIC base address constraint for in-kernel irqchipDocumentation/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] KVM: x86: Document APIC base memory hole constraint
When virtual APIC access acceleration is enabled on x86 (APICv on Intel, AVIC on AMD), vcpu creation installs a private memory slot at the default APIC base address (0xfee00000). If user space maps a memory region covering that address, vcpu creation fails with -EEXIST. This is not documented and very puzzling when it happens.
This series documents two undocumented constraints:
1/2 KVM_CREATE_IRQCHIP must precede vcpu creation
2/2 APIC base address memory hole when APIC acceleration is enabled
Thanks to Sean Christopherson for the thorough review of v1.
Changes since v1:
- Dropped enforcement patches (3/4, 4/4) per review feedback.
- Patch 1/2: Reworded to avoid implying that KVM_CREATE_IRQCHIP is mandatory.
- Patch 2/2: Reworded to reflect that the APIC access page is not installed in every case. Added note about KVM_CAP_SPLIT_IRQCHIP having the same constraint.
v1: https://lore.kernel.org/kvm/[email protected]/
Tim Wiederhake (2):
KVM: x86: Document that KVM_CREATE_IRQCHIP must precede vcpu creation
KVM: x86: Document APIC base address constraint for in-kernel irqchip
Documentation/virt/kvm/api.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
Signature · 1 line
2.52.0