diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-08-25 09:59:48 +0100 |
|---|---|---|
| committer | Oliver Upton <oupton@kernel.org> | 2026-09-15 15:09:56 -0700 |
| commit | 4f16c5fc8dc4c5596e3777ab9f449a54e3f85fd5 (patch) | |
| tree | 2c8188e8a4e011e9fa8813f399157b774191db74 /tools/perf/scripts/python | |
| parent | 0d62fbf34d8fe7a3ff56692d39fbb8e6e9bf15fb (diff) | |
| download | linux-next-4f16c5fc8dc4c5596e3777ab9f449a54e3f85fd5.tar.gz linux-next-4f16c5fc8dc4c5596e3777ab9f449a54e3f85fd5.zip | |
KVM: arm64: Derive GUEST_HAS_SVE from the SVE feature bit at EL2
pkvm_init_features_from_host() takes KVM_ARCH_FLAG_GUEST_HAS_SVE and
KVM_ARM_VCPU_SVE from the host separately, but pkvm_vcpu_init_sve()
tests the bit while vcpu_has_sve() reads the flag. A host that sets the
flag without the bit gets a vCPU with a NULL sve_state that the world
switch loads the guest's SVE state from.
Derive the flag from the bit, and drop the protected path's copy of the
host's flag, which is dead code since protected VMs are not allowed SVE.
Fixes: 41d6028e28bd ("KVM: arm64: Convert the SVE guest vcpu flag to a vm flag")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260825085948.1674721-5-fuad.tabba@linux.dev
Signed-off-by: Oliver Upton <oupton@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
