Skip to content

ASI: HVM through PH1

George Dunlap xen-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest50 patches 4 repliesIn review
  2. v644 patches 7 repliesSuperseded
  3. v545 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v430 patches8 repliesSuperseded
v318 patches62 repliesSuperseded

Changes in v7 from the cover letter

- X1-X4 come first. As they apply to staging without VH or DV, they no longer assume per-vCPU page-tables or the sparse directmap:
create_perdomain_mapping() is given the domain until 22 converts its callers, the map_domain_pages() slot bitmap is a field of struct arch_vcpu, and messages and comments describe the domain-wide area. 22, 25, 27 and 30 are ported over them. Each patch's changelog has the details.

- Following Jan's review of v6's 25, the vCPU state window's AMD- and Intel-specific slots share the same pages, and the slots are in patch order (02, 09, 10 and 21).

- Following Jan's review of v6's 28, svm_vmcb_dump() is now passed the vCPU, so that it maps the VMCB itself and still prints its physical
address: 05, "x86/svm: Pass struct vcpu to svm_vmcb_dump()".

- 07 is retitled "x86/vmx: move the guest MSR load/save list off the xenheap": on its own, the move takes the list off the xenheap; the directmap still maps the domain-heap page.

- The vmap-strict sub-option of asi= is split out of "x86/domain_page: introduce map_domain_pages()" (12) into a patch of its own, 38, after the sparse directmap view's sub-option (37).

- 35, "x86/domain_page: clear a mapcache slot at its last unmap": the two INVLPGs at a per-vCPU mapcache slot's last unmap are replaced by a mark on the CPU, and a CR3 reload when it is set, as the last step before the next VM entry and at a lazy switch to idle. This reverses Roger's request for v4, and takes the first of the alternatives he named on v3 15/18. On an Intel box the INVLPGs cost a PVH guest's yield ping-pong 1.81 us a round trip, the flush 0.24 us; a port read that QEMU answers, 4,537 ns and 339 ns.

- PH1 (40-50) is new.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/50x86/mm: introduce populate_perdomain_mapping()xen/arch/x86/include/asm/mm.h xen/arch/x86/mm.c+65 -01 reply
2/50x86/mm: introduce a per-vCPU state window in the perdomain areaxen/arch/x86/domain.c xen/arch/x86/include/asm/config.h xen/arch/x86/include/asm/mm.h +1 more+78 -11 reply
3/50x86/svm: introduce SVM_MAP_VMCB() and SVM_UNMAP_VMCB()xen/arch/x86/hvm/svm/nestedsvm.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/svm/vmcb.c +1 more+145 -392 replies
4/50x86/svm: restore guest debug registers in svm_do_resume()xen/arch/x86/hvm/svm/svm.c+2 -20 replies
5/50x86/svm: Pass struct vcpu to svm_vmcb_dump()xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/svm/vmcb.c xen/arch/x86/hvm/svm/vmcb.h+15 -90 replies
6/50x86/svm: allocate VMCBs from the domain heap behind the vCPU state windowxen/arch/x86/hvm/svm/nestedsvm.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/svm/vmcb.c +1 more+56 -200 replies
7/50x86/vmx: move the guest MSR load/save list off the xenheapxen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/include/asm/hvm/vmx/vmcs.h+147 -580 replies
8/50x86: access a vCPU's saved register frame through map/unmap helpersxen/arch/x86/domain.c xen/arch/x86/domctl.c xen/arch/x86/hvm/domain.c +7 more+204 -1280 replies
9/50x86: move the saved register frame behind the vCPU state windowxen/arch/x86/domain.c xen/arch/x86/include/asm/config.h xen/arch/x86/include/asm/domain.h+117 -90 replies
10/50x86/hvm: move the emulator's operand caches behind the vCPU state windowxen/arch/x86/domain.c xen/arch/x86/hvm/emulate.c xen/arch/x86/include/asm/config.h +2 more+164 -500 replies
11/50x86/hvm: clear the vCPU's copy of an emulated I/O request once consumedxen/arch/x86/hvm/emulate.c+28 -80 replies
12/50x86/domain_page: introduce map_domain_pages()xen/arch/x86/domain_page.c xen/arch/x86/include/asm/config.h xen/arch/x86/include/asm/domain.h +1 more+188 -130 replies
13/50x86/shadow: use map_domain_pages() for cross-page emulated writesxen/arch/x86/mm/shadow/hvm.c+2 -20 replies
14/50x86/hvm: use map_domain_pages() for multi-frame emulated accessesxen/arch/x86/hvm/emulate.c+6 -50 replies
15/50x86/emulator: Refactor FXSAVE_AREA to use wrappersxen/arch/x86/x86_emulate/blk.c+25 -110 replies
16/50x86/mpx: Map/unmap xsave area in read_bndcfgu()xen/arch/x86/xstate.c+9 -30 replies
17/50x86/fpu: Pass explicit xsave areas to fpu_(f)xsave()xen/arch/x86/i387.c xen/arch/x86/include/asm/xstate.h xen/arch/x86/xstate.c+14 -90 replies
18/50x86/fpu: Pass explicit xsave areas to fpu_(f)xrstor()xen/arch/x86/i387.c xen/arch/x86/include/asm/xstate.h xen/arch/x86/xstate.c+16 -120 replies
19/50x86/xstate: classify xsave-area seam accesses by failure modexen/arch/x86/domctl.c xen/arch/x86/hvm/hvm.c xen/arch/x86/i387.c +2 more+66 -260 replies
20/50x86/domain: restore FPU state after switching to the new page tablesxen/arch/x86/domain.c+3 -10 replies
21/50x86/xstate: move guest XSAVE areas behind the vCPU state windowxen/arch/x86/domain.c xen/arch/x86/i387.c xen/arch/x86/include/asm/config.h +4 more+240 -500 replies
22/50x86/mm: prepare create_perdomain_mapping() for per-vCPU perdomain areasxen/arch/x86/domain.c xen/arch/x86/domain_page.c xen/arch/x86/include/asm/mm.h +3 more+10 -90 replies
23/50x86/spec-ctrl: introduce Address Space Isolation command line optiondocs/misc/xen-command-line.pandoc xen/arch/x86/include/asm/domain.h xen/arch/x86/include/asm/spec_ctrl.h +1 more+124 -00 replies
24/50x86/mm: have init_xen_l4_slots() take a vCPU in place of the domainxen/arch/x86/include/asm/mm.h xen/arch/x86/mm.c xen/arch/x86/mm/hap/hap.c +4 more+41 -130 replies
25/50x86/hvm: introduce per-vCPU L3 page-tablexen/arch/x86/domain.c xen/arch/x86/include/asm/domain.h xen/arch/x86/include/asm/mm.h +1 more+74 -220 replies
26/50x86/domain_page: drop redundant is_pv_vcpu() checksxen/arch/x86/domain_page.c+2 -20 replies
27/50x86/domain_page: prepare the mapcache for per-vCPU accountingxen/arch/x86/domain_page.c xen/arch/x86/include/asm/domain.h+102 -540 replies
28/50x86/domain_page: move struct mapcache_vcpu to struct arch_vcpuxen/arch/x86/domain_page.c xen/arch/x86/include/asm/domain.h+6 -60 replies
29/50x86/domain_page: don't unmap a mapcache entry that is not presentxen/arch/x86/domain_page.c+9 -00 replies
30/50x86/hvm: introduce per-vCPU mapcache for vCPU-PT domainsxen/arch/x86/domain_page.c xen/arch/x86/include/asm/config.h xen/arch/x86/include/asm/domain.h +1 more+72 -230 replies
31/50x86/mm: let Xen's page-table walker operate on a given rootxen/arch/x86/mm.c+56 -220 replies
32/50x86/mm: add hooks for a sparse view of the directmapxen/arch/x86/include/asm/mm.h xen/arch/x86/include/asm/sparse-directmap.h xen/arch/x86/mm.c +5 more+142 -100 replies
33/50x86/mm: build and maintain a sparse view of the directmapxen/arch/x86/Kconfig xen/arch/x86/Makefile xen/arch/x86/include/asm/mm.h +5 more+580 -00 replies
34/50x86/domain_page: key the directmap fast paths on the loaded viewxen/arch/x86/domain_page.c xen/arch/x86/include/asm/domain.h+34 -30 replies
35/50x86/domain_page: clear a mapcache slot at its last unmapxen/arch/x86/domain.c xen/arch/x86/domain_page.c xen/arch/x86/flushtlb.c +5 more+99 -150 replies
36/50x86/mm: run guest contexts on the sparse directmap viewxen/arch/x86/include/asm/sparse-directmap.h xen/arch/x86/mm.c xen/arch/x86/pv/shim.c +1 more+45 -30 replies
37/50x86/spec-ctrl: wire the sparse directmap view into the asi= optiondocs/misc/xen-command-line.pandoc xen/arch/x86/include/asm/sparse-directmap.h xen/arch/x86/pv/domain.c +1 more+138 -170 replies
38/50x86/spec-ctrl: add the vmap-strict sub-option of asi=docs/misc/xen-command-line.pandoc xen/arch/x86/domain_page.c xen/arch/x86/include/asm/spec_ctrl.h +1 more+19 -10 replies
39/50x86/mm: split a sparse directmap superpage with a page being freedxen/arch/x86/include/asm/mm.h xen/arch/x86/mm.c xen/arch/x86/sparse-directmap.c +2 more+78 -230 replies
40/50x86/mtrr: move the set_mtrr() rendezvous data off the stackxen/arch/x86/cpu/mtrr/main.c+10 -10 replies
41/50x86/smp: move smp_send_stop()'s AP-stop flag off the stackxen/arch/x86/smp.c+9 -10 replies
42/50x86/time: move the calibration rendezvous data off the stackxen/arch/x86/time.c+9 -20 replies
43/50x86/ucode: move the stop_machine payload off the stackxen/arch/x86/cpu/microcode/core.c+6 -10 replies
44/50x86/MCE: pass NULL to x86_mc_mceinject()xen/arch/x86/cpu/mcheck/mce.c+3 -40 replies
45/50xen/smp: introduce by-value payloads for call-function IPIsxen/common/smp.c xen/include/xen/smp.h+152 -30 replies
46/50x86/cpufreq: move the CPU mask out of struct drv_cmdxen/arch/x86/acpi/cpufreq/acpi.c+13 -150 replies
47/50x86/acpi: pass stack-allocated callfunc payloads by valuexen/arch/x86/acpi/cpu_idle.c xen/arch/x86/acpi/cpufreq/acpi.c xen/arch/x86/acpi/cpufreq/cpufreq.c +2 more+11 -90 replies
48/50x86/mce: pass the error-injection callfunc payload by valuexen/arch/x86/cpu/mcheck/mce.c+2 -20 replies
49/50x86: pass remaining stack-allocated callfunc payloads by valuexen/arch/x86/platform_hypercall.c xen/arch/x86/psr.c xen/arch/x86/shutdown.c +1 more+6 -50 replies
50/50xen/smp: assert that by-pointer callfunc payloads are not on the stackxen/common/smp.c xen/common/stop_machine.c xen/include/xen/smp.h+28 -00 replies

Reviews trailers per patch

4 of 50 patches have a Reviewed-by or Acked-by.

PatchRoger Pau MonnéJan Beulich
1/50R-b
2/50R-b
3/50
4/50
5/50
6/50
7/50
8/50
9/50
10/50
11/50
12/50
13/50
14/50
15/50
16/50
17/50
18/50
19/50
20/50
21/50
22/50
23/50
24/50
25/50
26/50
27/50
28/50R-b
29/50R-b
30/50
31/50
32/50
33/50
34/50
35/50
36/50
37/50
38/50
39/50
40/50
41/50
42/50
43/50
44/50
45/50
46/50
47/50
48/50
49/50
50/50

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 00/50] ASI: HVM through PH1

This is the first part of a series to implement address space isolation.

The approach is the same since v3: Start by focusing on just getting ASI and intra-domain isolation for HVM guests. PV support is added where it's simple to do.

Two key differences in v7:

- X1-4, which move vCPU state out of the xenheap and into a per-vCPU state area, are now at the front. While these are necessary for ASI, they're also just general clean-up patches moving things out of the xenheap, and should be considered for commit even without the rest of the series.

- Include PH1 at the end, the first set of preparatory patches for having per-pCPU stack mappings.

The full series can be roughly divided as below:

Included in this version:

- X1 (01-07): Add a vCPU state window to the per-domain area (both for PV and HVM). Move SVM VMCB structures and VMX guest MSR areas into it.

- X2 (08-11): Move every vCPU's saved register frame (PV and HVM), and the HVM emulator's operand caches, into the vCPU state window. 11 also clears the vCPU's copy of an emulated I/O request once it has been consumed.

- X3 (12-14): Introduce map_domain_pages(), which maps several pages in the calling vCPU's per-domain area, and use it in place of vmap() for the shadow code's cross-page emulated writes and the HVM emulator's multi-frame accesses.

- X4 (15-21): Move the guest XSAVE areas into the vCPU state window.

- VH (22-30): Give each vCPU of an HVM guest its own per-domain area and its own mapcache.

- DV (31-39): Maintain two "views" of the directmap: A full directmap, and a sparse directmap. The full directmap is what we have now; the sparse directmap removes non-xenheap heap memory.

- PH1 (40-50), new in this version: Preparation for per-pCPU stacks, modifying rendezvous and call-function IPIs to not use the stack.

Implemented but not yet posted:

- PH2: Moving pCPU stacks into the perdomain area, allocating them from the domheap

- O: A number of optimizations to improve performance

The functionality of 01-39 (v6's, through X4) is the bare minimum that XenServer needs to make it into 4.23.

v6 can be found here:

https://lore.kernel.org/xen-devel/[email protected]/

v7 is based on staging 5b28c0efc1d5. v6's 01-04 are in staging (61c1d7aafc47, af8ab775f391, d4f928aaa320, 6d59811c3eee), as are v6's 15, "xen/gunzip: process pending softirqs once per deflate block" (aa0b5c26fe88), and 22, "xen/xmalloc: return an emptied region after dropping the pool lock" (e33b6d11fe79). With the new order, v6's 24-44 are v7's 01-21, v6's 05-13 are 22-30, and v6's 14, 16-21 and 23 are 31, 32-37 and 39.

Changes in v7:

- X1-X4 come first. As they apply to staging without VH or DV, they no longer assume per-vCPU page-tables or the sparse directmap:
create_perdomain_mapping() is given the domain until 22 converts its callers, the map_domain_pages() slot bitmap is a field of struct arch_vcpu, and messages and comments describe the domain-wide area. 22, 25, 27 and 30 are ported over them. Each patch's changelog has the details.

- Following Jan's review of v6's 25, the vCPU state window's AMD- and Intel-specific slots share the same pages, and the slots are in patch order (02, 09, 10 and 21).

- Following Jan's review of v6's 28, svm_vmcb_dump() is now passed the vCPU, so that it maps the VMCB itself and still prints its physical
address: 05, "x86/svm: Pass struct vcpu to svm_vmcb_dump()".

- 07 is retitled "x86/vmx: move the guest MSR load/save list off the xenheap": on its own, the move takes the list off the xenheap; the directmap still maps the domain-heap page.

- The vmap-strict sub-option of asi= is split out of "x86/domain_page: introduce map_domain_pages()" (12) into a patch of its own, 38, after the sparse directmap view's sub-option (37).

- 35, "x86/domain_page: clear a mapcache slot at its last unmap": the two INVLPGs at a per-vCPU mapcache slot's last unmap are replaced by a mark on the CPU, and a CR3 reload when it is set, as the last step before the next VM entry and at a lazy switch to idle. This reverses Roger's request for v4, and takes the first of the alternatives he named on v3 15/18. On an Intel box the INVLPGs cost a PVH guest's yield ping-pong 1.81 us a round trip, the flush 0.24 us; a port read that QEMU answers, 4,537 ns and 339 ns.

- PH1 (40-50) is new.

Some more details:

11 also limits exposure of ioreq state: Completely isolating each vCPU's I/O requests from being read by other vCPUs of the same domain is complicated; as a mitigation, this patch clears the emulated I/O request once it has been consumed, reducing the window available to read the payload.

15-18 are Alejandro's patches from "x86: Address Space Isolation FPU preparations" (v3, January 2025), revived.

State is moved from the xenheap into the per-domain area for both ASI and non-ASI domains: VMCB, MSR List, vCPU register frame, and XSAVE/FPU areas. Same is true for users of map_domain_pages. This protects non-ASI domains from ASI domains.

One key thing to get feedback on, still open from v6, is the question below 21's "---": xstate_init() now panics on hardware whose XSAVE area needs more than the three pages reserved for it in the vCPU state window. No current hardware does. Should it do more, for instance size the reservation from the size found at boot, or fall back to xenheap areas on such hardware?

In PH1, the data that rendezvous and call-function IPIs hand to other CPUs moves off the initiating CPU's stack. 45 adds by-value payloads for call-function IPIs, which 47-49 use, and 50 asserts that a payload passed by pointer is not on the stack.

Note that at the end of this series, PV guests can be given the sparse directmap; this isolates them from other domains, but doesn't isolate vCPUs within a domain. With this series, a PV domain's register frames and XSAVE areas are also out of reach of domains on the sparse directmap, whether or not the PV domain itself is on it.

Testing of v7, on the series as posted (staging 5b28c0efc1d5):

- Builds of xen/ at each of the 50 patches, in seven configurations:
debug and release, !HVM, !PV, the PV shim, and shadow paging, debug and release; from 33, which adds CONFIG_SPARSE_DIRECTMAP, also with it, debug and release. No warnings or errors beyond those staging itself gives. arm64 builds of 50, debug and release.

- On an Intel NUC: whole-tree builds (xen, tools, stubdom, docs) at each of the 50, with tools/tests/vpci run.

- QEMU (TCG) smoke boots at 21 and 50: PV and PVH dom0s (the PVH one on HAP and on shadow), and XTF's 32-bit PV and 32-bit HVM selftests as dom0; at 50 without asi= and with asi=1 (asi= arrives with 23). Each boot gets to dom0's userspace (or the test's result) with no crash, assertion or WARN() in Xen's log.

- On the NUC: boots of 50 without asi= and with asi=1. In each, a 64-bit PV guest is live-migrated to the same host in shadow log-dirty mode under a verified workload, with an HVM guest beside it; with asi=1, XTF's full suite, 32-bit PV included, passes twice (the usual four skips).

- GitLab CI passed:
https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/3090273611

A dependency graph of the above functionality can be found here:

https://xenbits.xenproject.org/people/gdunlap/asi-series-deps.html

Extending the intra-domain isolation to PV guests would involve implementing per-vCPU root pagetables for PV guests. There are draft implementations of this, but they are quite complicated.

Alejandro Vallejo (4):
x86/emulator: Refactor FXSAVE_AREA to use wrappers x86/mpx: Map/unmap xsave area in read_bndcfgu() x86/fpu: Pass explicit xsave areas to fpu_(f)xsave() x86/fpu: Pass explicit xsave areas to fpu_(f)xrstor()

George Dunlap (39):
x86/mm: introduce a per-vCPU state window in the perdomain area x86/svm: introduce SVM_MAP_VMCB() and SVM_UNMAP_VMCB() x86/svm: restore guest debug registers in svm_do_resume() x86/svm: Pass struct vcpu to svm_vmcb_dump()
x86/svm: allocate VMCBs from the domain heap behind the vCPU state
window
x86/vmx: move the guest MSR load/save list off the xenheap
x86: access a vCPU's saved register frame through map/unmap helpers
x86: move the saved register frame behind the vCPU state window x86/hvm: move the emulator's operand caches behind the vCPU state
window
x86/hvm: clear the vCPU's copy of an emulated I/O request once
consumed
x86/domain_page: introduce map_domain_pages()
x86/shadow: use map_domain_pages() for cross-page emulated writes x86/hvm: use map_domain_pages() for multi-frame emulated accesses x86/xstate: classify xsave-area seam accesses by failure mode x86/domain: restore FPU state after switching to the new page tables x86/xstate: move guest XSAVE areas behind the vCPU state window x86/mm: have init_xen_l4_slots() take a vCPU in place of the domain x86/domain_page: drop redundant is_pv_vcpu() checks x86/domain_page: don't unmap a mapcache entry that is not present x86/mm: let Xen's page-table walker operate on a given root x86/mm: add hooks for a sparse view of the directmap x86/mm: build and maintain a sparse view of the directmap x86/domain_page: key the directmap fast paths on the loaded view x86/domain_page: clear a mapcache slot at its last unmap x86/mm: run guest contexts on the sparse directmap view x86/spec-ctrl: wire the sparse directmap view into the asi= option x86/spec-ctrl: add the vmap-strict sub-option of asi= x86/mm: split a sparse directmap superpage with a page being freed x86/mtrr: move the set_mtrr() rendezvous data off the stack x86/smp: move smp_send_stop()'s AP-stop flag off the stack x86/time: move the calibration rendezvous data off the stack x86/ucode: move the stop_machine payload off the stack x86/MCE: pass NULL to x86_mc_mceinject()
xen/smp: introduce by-value payloads for call-function IPIs x86/cpufreq: move the CPU mask out of struct drv_cmd x86/acpi: pass stack-allocated callfunc payloads by value x86/mce: pass the error-injection callfunc payload by value
x86: pass remaining stack-allocated callfunc payloads by value xen/smp: assert that by-pointer callfunc payloads are not on the stack

Roger Pau Monné (7):
x86/mm: introduce populate_perdomain_mapping()
x86/mm: prepare create_perdomain_mapping() for per-vCPU perdomain
areas
x86/spec-ctrl: introduce Address Space Isolation command line option x86/hvm: introduce per-vCPU L3 page-table x86/domain_page: prepare the mapcache for per-vCPU accounting x86/domain_page: move struct mapcache_vcpu to struct arch_vcpu x86/hvm: introduce per-vCPU mapcache for vCPU-PT domains

 docs/misc/xen-command-line.pandoc           |  57 +++
 xen/arch/x86/Kconfig                        |   1 +
 xen/arch/x86/Makefile                       |   1 +
 xen/arch/x86/acpi/cpu_idle.c                |   3 +-
 xen/arch/x86/acpi/cpufreq/acpi.c            |  28 +-
 xen/arch/x86/acpi/cpufreq/cpufreq.c         |   4 +-
 xen/arch/x86/acpi/cpufreq/powernow.c        |   6 +-
 xen/arch/x86/acpi/lib.c                     |   3 +-
 xen/arch/x86/cpu/mcheck/mce.c               |  11 +-
 xen/arch/x86/cpu/microcode/core.c           |   7 +-
 xen/arch/x86/cpu/mtrr/main.c                |  11 +-
 xen/arch/x86/domain.c                       | 235 ++++++++--
 xen/arch/x86/domain_page.c                  | 475 ++++++++++++++++----
 xen/arch/x86/domctl.c                       |  98 ++--
 xen/arch/x86/flushtlb.c                     |   6 +
 xen/arch/x86/hvm/domain.c                   |   6 +-
 xen/arch/x86/hvm/emulate.c                  | 243 +++++++---
 xen/arch/x86/hvm/hvm.c                      | 116 +++--
 xen/arch/x86/hvm/svm/nestedsvm.c            |  12 +-
 xen/arch/x86/hvm/svm/svm.c                  | 153 +++++--
 xen/arch/x86/hvm/svm/vmcb.c                 |  81 +++-
 xen/arch/x86/hvm/svm/vmcb.h                 |  31 +-
 xen/arch/x86/hvm/vmx/vmcs.c                 | 151 ++++++-
 xen/arch/x86/hvm/vmx/vmx.c                  |  10 +-
 xen/arch/x86/hypercall.c                    |   4 +-
 xen/arch/x86/i387.c                         |  60 ++-
 xen/arch/x86/include/asm/config.h           |  45 +-
 xen/arch/x86/include/asm/domain.h           | 111 ++++-
 xen/arch/x86/include/asm/hvm/emulate.h      |   9 +-
 xen/arch/x86/include/asm/hvm/vcpu.h         |   7 +
 xen/arch/x86/include/asm/hvm/vmx/vmcs.h     |  63 +--
 xen/arch/x86/include/asm/i387.h             |   1 +
 xen/arch/x86/include/asm/mm.h               |  29 +-
 xen/arch/x86/include/asm/sparse-directmap.h |  83 ++++
 xen/arch/x86/include/asm/spec_ctrl.h        |   3 +
 xen/arch/x86/include/asm/xstate.h           |  73 +--
 xen/arch/x86/mm.c                           | 430 ++++++++++++++++--
 xen/arch/x86/mm/hap/hap.c                   |   2 +-
 xen/arch/x86/mm/shadow/hvm.c                |   6 +-
 xen/arch/x86/mm/shadow/multi.c              |   5 +-
 xen/arch/x86/platform_hypercall.c           |   2 +-
 xen/arch/x86/psr.c                          |   2 +-
 xen/arch/x86/pv/dom0_build.c                |  11 +-
 xen/arch/x86/pv/domain.c                    |  20 +-
 xen/arch/x86/pv/shim.c                      |   4 +-
 xen/arch/x86/setup.c                        |   4 +
 xen/arch/x86/shutdown.c                     |   4 +-
 xen/arch/x86/smp.c                          |  10 +-
 xen/arch/x86/sparse-directmap.c             | 455 +++++++++++++++++++
 xen/arch/x86/spec_ctrl.c                    | 183 +++++++-
 xen/arch/x86/sysctl.c                       |   3 +-
 xen/arch/x86/time.c                         |  11 +-
 xen/arch/x86/traps.c                        |  20 +-
 xen/arch/x86/x86_64/mm.c                    |  12 +-
 xen/arch/x86/x86_emulate/blk.c              |  36 +-
 xen/arch/x86/xstate.c                       | 212 ++++++++-
 xen/common/Kconfig                          |  18 +
 xen/common/page_alloc.c                     |  51 ++-
 xen/common/smp.c                            |  95 +++-
 xen/common/stop_machine.c                   |   6 +
 xen/include/xen/domain_page.h               |  21 +
 xen/include/xen/mm.h                        |  40 ++
 xen/include/xen/smp.h                       |  82 +++-
 63 files changed, 3365 insertions(+), 617 deletions(-)
 create mode 100644 xen/arch/x86/include/asm/sparse-directmap.h
 create mode 100644 xen/arch/x86/sparse-directmap.c

base-commit: 5b28c0efc1d5d73ce651ca651e103c45b6932f9d

Signature · 1 line
2.56.0