Bug 23278 - Backport logic fixes and optimizations in the KVM
Summary: Backport logic fixes and optimizations in the KVM
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-05 22:07 UTC by wojiaohanliyang
Modified: 2025-08-05 22:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2025-08-05 22:07:22 UTC
Description of problem:

- 3280cc22aea74d78ebbea277ff8bc8d593582de3 KVM: SVM: Don't apply SEV+SMAP workaround on code fetch or PT access

  Optimize logic of SMAP Erratum fixes.

- adbfb12d4c4517a8adde23a7fc46538953d56eea KVM: x86: Exit to userspace if emulation prepared a completion callback

  Fix potential failure to exit to userspace when one rdmsr/wrmsr need userspace to complete the emulation.

- 916b54a7688b0b9a1c48c708b848e4348c3ae2ab KVM: x86: Move HF_NMI_MASK and HF_IRET_MASK into "struct vcpu_svm"
- 389fbbec261b2842fd0e34b26a2b288b122cc406 KVM: SVM: Don't defer NMI unblocking until next exit for SEV-ES guests

  Optimize NMI injections to the register state encrypted VMs.

- 3376ca3f1a2075eaa23c5576c47d04d7e8a4adda KVM: x86: Fix KVM_GET_MSRS stack info leak

  Fix potential leak of kernel-space memory data when return MSR info to user-space VMM.

- 0aa1837533e5f4be8cc21bbc06314c23ba2c5447 KVM: x86: Properly reset MMU context at vCPU RESET/INIT

  Fix MMU context errors when RESET/INIT vCPU.

- 4f117ce4aefca0e90cd44680219d4c261c1381b9 KVM: SVM: Zero out GDTR.base and IDTR.base on INIT

  Make the vCPU reset state comply with the spec.

- 27592ae8dbe41033261b6fdf27d78998aabd2665 KVM: Move wiping of the kvm->vcpus array to common code
- 6fcee03df6a1a3101a77344be37bb85c6142d56c KVM: x86: avoid loading a vCPU after .vm_destroy was called

  Fix the UAF Bug of the AVIC's physical id table.

- 17122c06b86c9f77f45b86b8e62c3ed440847a59 KVM: x86: Fail emulation during EMULTYPE_SKIP on any exception

  Fix potential infinite loops when performing the emulation.

- 5c30e8101e8d5d020b1d7119117889756a6ed713 KVM: SVM: Skip WRMSR fastpath on VM-Exit if next RIP isn't valid

  WRMSR fastpath depends on valid nrips.

- 5d2d7e41e3b80f37ec8673825fae07ffe9f140c3 KVM: SVM: Drop explicit MMU reset at RESET/INIT

  0aa1837533e5f4be8cc21bbc06314c23ba2c5447 "KVM: x86: Properly reset MMU context at vCPU RESET/INIT" handles the MMU reset gracefully; revert this patch.

- e9337c843c4b4eaa4afb752a7272ef3d04c46381 kvm: fix wrong exception emulation in check_rdtsc

  Make the rdtsc emulation comply with the spec.

- e8a747d0884e554a8c1872da6c8f680a4f893c6d KVM: x86: Swap order of CPUID entry "index" vs. "significant flag" checks

  Fix the check sequences when using CPUID subleaf.

- 89924745435d anolis: Revert "anolis: KVM: SEV: Pin SEV guest memory out of CMA area"

  We meant to backport upstream patch to optimize the sev_pin_memory() function,  and we need to revert "anolis: KVM: SEV: Pin SEV guest memory out of CMA area"

- 7e066cb9b71a22c3e5ef233de63ff14525baf6f0 KVM: SEV: Use long-term pin when registering encrypted memory regions

  Optimize sev_pin_memory() so that it can carry long-term pin information.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-08-05 22:12:46 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5583