<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in sev_migrate_tests.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>0fc8f6200d2313278fbf4539bbab74677c685531 - Merge drm/drm-fixes into drm-misc-fixes</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#0fc8f6200d2313278fbf4539bbab74677c685531</link>
        <description>Merge drm/drm-fixes into drm-misc-fixesGetting fixes and updates from v7.1-rc1.Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Mon, 27 Apr 2026 10:26:49 +0200</pubDate>
        <dc:creator>Thomas Zimmermann &lt;tzimmermann@suse.de&gt;</dc:creator>
    </item>
<item>
        <title>01f492e1817e858d1712f2489d0afbaa552f417b - Merge tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvm</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#01f492e1817e858d1712f2489d0afbaa552f417b</link>
        <description>Merge tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvmPull kvm updates from Paolo Bonzini: &quot;Arm:   - Add support for tracing in the standalone EL2 hypervisor code,     which should help both debugging and performance analysis. This     uses the new infrastructure for &apos;remote&apos; trace buffers that can be     exposed by non-kernel entities such as firmware, and which came     through the tracing tree   - Add support for GICv5 Per Processor Interrupts (PPIs), as the     starting point for supporting the new GIC architecture in KVM   - Finally add support for pKVM protected guests, where pages are     unmapped from the host as they are faulted into the guest and can     be shared back from the guest using pKVM hypercalls. Protected     guests are created using a new machine type identifier. As the     elusive guestmem has not yet delivered on its promises, anonymous     memory is also supported     This is only a first step towards full isolation from the host; for     example, the CPU register state and DMA accesses are not yet     isolated. Because this does not really yet bring fully what it     promises, it is hidden behind CONFIG_ARM_PKVM_GUEST +     &apos;kvm-arm.mode=protected&apos;, and also triggers TAINT_USER when a VM is     created. Caveat emptor   - Rework the dreaded user_mem_abort() function to make it more     maintainable, reducing the amount of state being exposed to the     various helpers and rendering a substantial amount of state     immutable   - Expand the Stage-2 page table dumper to support NV shadow page     tables on a per-VM basis   - Tidy up the pKVM PSCI proxy code to be slightly less hard to     follow   - Fix both SPE and TRBE in non-VHE configurations so that they do not     generate spurious, out of context table walks that ultimately lead     to very bad HW lockups   - A small set of patches fixing the Stage-2 MMU freeing in error     cases   - Tighten-up accepted SMC immediate value to be only #0 for host     SMCCC calls   - The usual cleanups and other selftest churn  LoongArch:   - Use CSR_CRMD_PLV for kvm_arch_vcpu_in_kernel()   - Add DMSINTC irqchip in kernel support  RISC-V:   - Fix steal time shared memory alignment checks   - Fix vector context allocation leak   - Fix array out-of-bounds in pmu_ctr_read() and pmu_fw_ctr_read_hi()   - Fix double-free of sdata in kvm_pmu_clear_snapshot_area()   - Fix integer overflow in kvm_pmu_validate_counter_mask()   - Fix shift-out-of-bounds in make_xfence_request()   - Fix lost write protection on huge pages during dirty logging   - Split huge pages during fault handling for dirty logging   - Skip CSR restore if VCPU is reloaded on the same core   - Implement kvm_arch_has_default_irqchip() for KVM selftests   - Factored-out ISA checks into separate sources   - Added hideleg to struct kvm_vcpu_config   - Factored-out VCPU config into separate sources   - Support configuration of per-VM HGATP mode from KVM user space  s390:   - Support for ESA (31-bit) guests inside nested hypervisors   - Remove restriction on memslot alignment, which is not needed     anymore with the new gmap code   - Fix LPSW/E to update the bear (which of course is the breaking     event address register)  x86:   - Shut up various UBSAN warnings on reading module parameter before     they were initialized   - Don&apos;t zero-allocate page tables that are used for splitting     hugepages in the TDP MMU, as KVM is guaranteed to set all SPTEs in     the page table and thus write all bytes   - As an optimization, bail early when trying to unsync 4KiB mappings     if the target gfn can just be mapped with a 2MiB hugepage  x86 generic:   - Copy single-chunk MMIO write values into struct kvm_vcpu (more     precisely struct kvm_mmio_fragment) to fix use-after-free stack     bugs where KVM would dereference stack pointer after an exit to     userspace   - Clean up and comment the emulated MMIO code to try to make it     easier to maintain (not necessarily &quot;easy&quot;, but &quot;easier&quot;)   - Move VMXON+VMXOFF and EFER.SVME toggling out of KVM (not *all* of     VMX and SVM enabling) as it is needed for trusted I/O   - Advertise support for AVX512 Bit Matrix Multiply (BMM) instructions   - Immediately fail the build if a required #define is missing in one     of KVM&apos;s headers that is included multiple times   - Reject SET_GUEST_DEBUG with -EBUSY if there&apos;s an already injected     exception, mostly to prevent syzkaller from abusing the uAPI to     trigger WARNs, but also because it can help prevent userspace from     unintentionally crashing the VM   - Exempt SMM from CPUID faulting on Intel, as per the spec   - Misc hardening and cleanup changes  x86 (AMD):   - Fix and optimize IRQ window inhibit handling for AVIC; make it     per-vCPU so that KVM doesn&apos;t prematurely re-enable AVIC if multiple     vCPUs have to-be-injected IRQs   - Clean up and optimize the OSVW handling, avoiding a bug in which     KVM would overwrite state when enabling virtualization on multiple     CPUs in parallel. This should not be a problem because OSVW should     usually be the same for all CPUs   - Drop a WARN in KVM_MEMORY_ENCRYPT_REG_REGION where KVM complains     about a &quot;too large&quot; size based purely on user input   - Clean up and harden the pinning code for KVM_MEMORY_ENCRYPT_REG_REGION   - Disallow synchronizing a VMSA of an already-launched/encrypted     vCPU, as doing so for an SNP guest will crash the host due to an     RMP violation page fault   - Overhaul KVM&apos;s APIs for detecting SEV+ guests so that VM-scoped     queries are required to hold kvm-&gt;lock, and enforce it by lockdep.     Fix various bugs where sev_guest() was not ensured to be stable for     the whole duration of a function or ioctl   - Convert a pile of kvm-&gt;lock SEV code to guard()   - Play nicer with userspace that does not enable     KVM_CAP_EXCEPTION_PAYLOAD, for which KVM needs to set CR2 and DR6     as a response to ioctls such as KVM_GET_VCPU_EVENTS (even if the     payload would end up in EXITINFO2 rather than CR2, for example).     Only set CR2 and DR6 when consumption of the payload is imminent,     but on the other hand force delivery of the payload in all paths     where userspace retrieves CR2 or DR6   - Use vcpu-&gt;arch.cr2 when updating vmcb12&apos;s CR2 on nested #VMEXIT     instead of vmcb02-&gt;save.cr2. The value is out of sync after a     save/restore or after a #PF is injected into L2   - Fix a class of nSVM bugs where some fields written by the CPU are     not synchronized from vmcb02 to cached vmcb12 after VMRUN, and so     are not up-to-date when saved by KVM_GET_NESTED_STATE   - Fix a class of bugs where the ordering between KVM_SET_NESTED_STATE     and KVM_SET_{S}REGS could cause vmcb02 to be incorrectly     initialized after save+restore   - Add a variety of missing nSVM consistency checks   - Fix several bugs where KVM failed to correctly update VMCB fields     on nested #VMEXIT   - Fix several bugs where KVM failed to correctly synthesize #UD or     #GP for SVM-related instructions   - Add support for save+restore of virtualized LBRs (on SVM)   - Refactor various helpers and macros to improve clarity and     (hopefully) make the code easier to maintain   - Aggressively sanitize fields when copying from vmcb12, to guard     against unintentionally allowing L1 to utilize yet-to-be-defined     features   - Fix several bugs where KVM botched rAX legality checks when     emulating SVM instructions. There are remaining issues in that KVM     doesn&apos;t handle size prefix overrides for 64-bit guests   - Fail emulation of VMRUN/VMLOAD/VMSAVE if mapping vmcb12 fails     instead of somewhat arbitrarily synthesizing #GP (i.e. don&apos;t double     down on AMD&apos;s architectural but sketchy behavior of generating #GP     for &quot;unsupported&quot; addresses)   - Cache all used vmcb12 fields to further harden against TOCTOU bugs  x86 (Intel):   - Drop obsolete branch hint prefixes from the VMX instruction macros   - Use ASM_INPUT_RM() in __vmcs_writel() to coerce clang into using a     register input when appropriate   - Code cleanups  guest_memfd:   - Don&apos;t mark guest_memfd folios as accessed, as guest_memfd doesn&apos;t     support reclaim, the memory is unevictable, and there is no storage     to write back to  LoongArch selftests:   - Add KVM PMU test cases  s390 selftests:   - Enable more memory selftests  x86 selftests:   - Add support for Hygon CPUs in KVM selftests   - Fix a bug in the MSR test where it would get false failures on     AMD/Hygon CPUs with exactly one of RDPID or RDTSCP   - Add an MADV_COLLAPSE testcase for guest_memfd as a regression test     for a bug where the kernel would attempt to collapse guest_memfd     folios against KVM&apos;s will&quot;* tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvm: (373 commits)  KVM: x86: use inlines instead of macros for is_sev_*guest  x86/virt: Treat SVM as unsupported when running as an SEV+ guest  KVM: SEV: Goto an existing error label if charging misc_cg for an ASID fails  KVM: SVM: Move lock-protected allocation of SEV ASID into a separate helper  KVM: SEV: use mutex guard in snp_handle_guest_req()  KVM: SEV: use mutex guard in sev_mem_enc_unregister_region()  KVM: SEV: use mutex guard in sev_mem_enc_ioctl()  KVM: SEV: use mutex guard in snp_launch_update()  KVM: SEV: Assert that kvm-&gt;lock is held when querying SEV+ support  KVM: SEV: Document that checking for SEV+ guests when reclaiming memory is &quot;safe&quot;  KVM: SEV: Hide &quot;struct kvm_sev_info&quot; behind CONFIG_KVM_AMD_SEV=y  KVM: SEV: WARN on unhandled VM type when initializing VM  KVM: LoongArch: selftests: Add PMU overflow interrupt test  KVM: LoongArch: selftests: Add basic PMU event counting test  KVM: LoongArch: selftests: Add cpucfg read/write helpers  LoongArch: KVM: Add DMSINTC inject msi to vCPU  LoongArch: KVM: Add DMSINTC device support  LoongArch: KVM: Make vcpu_is_preempted() as a macro rather than function  LoongArch: KVM: Move host CSR_GSTAT save and restore in context switch  LoongArch: KVM: Move host CSR_EENTRY save and restore in context switch  ...

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Fri, 17 Apr 2026 16:18:03 +0200</pubDate>
        <dc:creator>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</dc:creator>
    </item>
<item>
        <title>92cdeac6a417391349481933aa32e3216a1cc217 - Merge tag &apos;kvm-x86-svm-7.1&apos; of https://github.com/kvm-x86/linux into HEAD</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#92cdeac6a417391349481933aa32e3216a1cc217</link>
        <description>Merge tag &apos;kvm-x86-svm-7.1&apos; of https://github.com/kvm-x86/linux into HEADKVM SVM changes for 7.1 - Fix and optimize IRQ window inhibit handling for AVIC (the tracking needs to   be per-vCPU, e.g. so that KVM doesn&apos;t prematurely re-enable AVIC if multiple   vCPUs have to-be-injected IRQs). - Fix an undefined behavior warning where a crafty userspace can read the   &quot;avic&quot; module param before it&apos;s fully initialized. - Fix a (likely benign) bug in the &quot;OS-visible workarounds&quot; handling, where   KVM could clobber state when enabling virtualization on multiple CPUs in   parallel, and clean up and optimize the code. - Drop a WARN in KVM_MEMORY_ENCRYPT_REG_REGION where KVM complains about a   &quot;too large&quot; size based purely on user input, and clean up and harden the   related pinning code. - Disallow synchronizing a VMSA of an already-launched/encrypted vCPU, as   doing so for an SNP guest will trigger an RMP violation #PF and crash the   host. - Protect all of sev_mem_enc_register_region() with kvm-&gt;lock to ensure   sev_guest() is stable for the entire of the function. - Lock all vCPUs when synchronizing VMSAs for SNP guests to ensure the VMSA   page isn&apos;t actively being used. - Overhaul KVM&apos;s APIs for detecting SEV+ guests so that VM-scoped queries are   required to hold kvm-&gt;lock (KVM has had multiple bugs due &quot;is SEV?&quot; checks   becoming stale), enforced by lockdep.  Add and use vCPU-scoped APIs when   possible/appropriate, as all checks that originate from a vCPU are   guaranteed to be stable. - Convert a pile of kvm-&gt;lock SEV code to guard().

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Mon, 13 Apr 2026 13:19:36 +0200</pubDate>
        <dc:creator>Paolo Bonzini &lt;pbonzini@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>25a642b6abc98bbbabbf2baef9fc498bbea6aee6 - KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#25a642b6abc98bbbabbf2baef9fc498bbea6aee6</link>
        <description>KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate testDrop the explicit KVM_SEV_LAUNCH_UPDATE_VMSA call when creating an SEV-ESVM in the SEV migration test, as sev_vm_create() automatically updates theVMSA pages for SEV-ES guests.  The only reason the duplicate call doesn&apos;tcause visible problems is because the test doesn&apos;t actually try to run thevCPUs.  That will change when KVM adds a check to prevent userspace fromre-launching a VMSA (which corrupts the VMSA page due to KVM writingencrypted private memory).Fixes: 69f8e15ab61f (&quot;KVM: selftests: Use the SEV library APIs in the intra-host migration test&quot;)Cc: stable@vger.kernel.orgLink: https://patch.msgid.link/20260310234829.2608037-2-seanjc@google.comSigned-off-by: Sean Christopherson &lt;seanjc@google.com&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 11 Mar 2026 00:48:09 +0100</pubDate>
        <dc:creator>Sean Christopherson &lt;seanjc@google.com&gt;</dc:creator>
    </item>
<item>
        <title>1260ed77798502de9c98020040d2995008de10cc - Merge drm/drm-fixes into drm-misc-fixes</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#1260ed77798502de9c98020040d2995008de10cc</link>
        <description>Merge drm/drm-fixes into drm-misc-fixesBackmerging to get updates from v6.15-rc1.Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Tue, 08 Apr 2025 10:15:47 +0200</pubDate>
        <dc:creator>Thomas Zimmermann &lt;tzimmermann@suse.de&gt;</dc:creator>
    </item>
<item>
        <title>946661e3bef8efa11ba8079d4ebafe6fc3b0aaad - Merge branch &apos;next&apos; into for-linus</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#946661e3bef8efa11ba8079d4ebafe6fc3b0aaad</link>
        <description>Merge branch &apos;next&apos; into for-linusPrepare input updates for 6.15 merge window.

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Sat, 05 Apr 2025 08:04:35 +0200</pubDate>
        <dc:creator>Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>0b119045b79a672bc6d8f18641c60fc8ce1b4585 - Merge tag &apos;v6.14-rc4&apos; into next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#0b119045b79a672bc6d8f18641c60fc8ce1b4585</link>
        <description>Merge tag &apos;v6.14-rc4&apos; into nextSync up with the mainline.

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 26 Feb 2025 01:03:25 +0100</pubDate>
        <dc:creator>Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>9e676a024fa1fa2bd8150c2d2ba85478280353bc - Merge tag &apos;v6.14-rc1&apos; into perf-tools-next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#9e676a024fa1fa2bd8150c2d2ba85478280353bc</link>
        <description>Merge tag &apos;v6.14-rc1&apos; into perf-tools-nextTo get the various fixes in the current master.Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 05 Feb 2025 23:57:18 +0100</pubDate>
        <dc:creator>Namhyung Kim &lt;namhyung@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>0410c6121529409b08e81a77ae3ee58c657e2243 - Merge drm/drm-next into drm-xe-next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#0410c6121529409b08e81a77ae3ee58c657e2243</link>
        <description>Merge drm/drm-next into drm-xe-nextSync to fix conlicts between drm-xe-next and drm-intel-next.Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@intel.com&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Fri, 28 Feb 2025 15:54:14 +0100</pubDate>
        <dc:creator>Lucas De Marchi &lt;lucas.demarchi@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>93c7dd1b39444ebd5a6a98e56a363d7a4e646775 - Merge drm/drm-next into drm-misc-next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#93c7dd1b39444ebd5a6a98e56a363d7a4e646775</link>
        <description>Merge drm/drm-next into drm-misc-nextBring rc1 to start the new release dev.Signed-off-by: Maxime Ripard &lt;mripard@kernel.org&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Thu, 06 Feb 2025 13:47:32 +0100</pubDate>
        <dc:creator>Maxime Ripard &lt;mripard@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>ea9f8f2b21795a5d80418a655bcb212d5b89e08f - Merge drm/drm-next into drm-intel-next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#ea9f8f2b21795a5d80418a655bcb212d5b89e08f</link>
        <description>Merge drm/drm-next into drm-intel-nextSync with v6.14-rc1.Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 05 Feb 2025 18:12:37 +0100</pubDate>
        <dc:creator>Jani Nikula &lt;jani.nikula@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>c771600c6af14749609b49565ffb4cac2959710d - Merge drm/drm-next into drm-intel-gt-next</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#c771600c6af14749609b49565ffb4cac2959710d</link>
        <description>Merge drm/drm-next into drm-intel-gt-nextWe need4ba4f1afb6a9 (&quot;perf: Generic hotplug support for a PMU with a scope&quot;)in order to land a i915 PMU simplification and a fix. That landed in 6.12and we are stuck at 6.9 so lets bump things forward.Signed-off-by: Tvrtko Ursulin &lt;tursulin@ursulin.net&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 05 Feb 2025 10:29:14 +0100</pubDate>
        <dc:creator>Tvrtko Ursulin &lt;tursulin@ursulin.net&gt;</dc:creator>
    </item>
<item>
        <title>b3cc7428a32202936904b5b07cf9f135025bafd6 - Merge branch &apos;for-6.15/amd_sfh&apos; into for-linus</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#b3cc7428a32202936904b5b07cf9f135025bafd6</link>
        <description>Merge branch &apos;for-6.15/amd_sfh&apos; into for-linusFrom: Mario Limonciello &lt;mario.limonciello@amd.com&gt;Some platforms include a human presence detection (HPD) sensor. Whenenabled and a user is detected a wake event will be emitted from thesensor fusion hub that software can react to.Example use cases are &quot;wake from suspend on approach&quot; or to &quot;lockwhen leaving&quot;.This is currently enabled by default on supported systems, but userscan&apos;t control it. This essentially means that wake on approach isenabled which is a really surprising behavior to users that don&apos;texpect it.Instead of defaulting to enabled add a sysfs knob that users canuse to enable the feature if desirable and set it to disabled bydefault.

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Wed, 26 Mar 2025 13:42:07 +0100</pubDate>
        <dc:creator>Jiri Kosina &lt;jkosina@suse.com&gt;</dc:creator>
    </item>
<item>
        <title>0f8e26b38d7ac72b3ad764944a25dd5808f37a6e - Merge tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvm</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#0f8e26b38d7ac72b3ad764944a25dd5808f37a6e</link>
        <description>Merge tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvmPull kvm updates from Paolo Bonzini: &quot;Loongarch:   - Clear LLBCTL if secondary mmu mapping changes   - Add hypercall service support for usermode VMM  x86:   - Add a comment to kvm_mmu_do_page_fault() to explain why KVM     performs a direct call to kvm_tdp_page_fault() when RETPOLINE is     enabled   - Ensure that all SEV code is compiled out when disabled in Kconfig,     even if building with less brilliant compilers   - Remove a redundant TLB flush on AMD processors when guest CR4.PGE     changes   - Use str_enabled_disabled() to replace open coded strings   - Drop kvm_x86_ops.hwapic_irr_update() as KVM updates hardware&apos;s     APICv cache prior to every VM-Enter   - Overhaul KVM&apos;s CPUID feature infrastructure to track all vCPU     capabilities instead of just those where KVM needs to manage state     and/or explicitly enable the feature in hardware. Along the way,     refactor the code to make it easier to add features, and to make it     more self-documenting how KVM is handling each feature   - Rework KVM&apos;s handling of VM-Exits during event vectoring; this     plugs holes where KVM unintentionally puts the vCPU into infinite     loops in some scenarios (e.g. if emulation is triggered by the     exit), and brings parity between VMX and SVM   - Add pending request and interrupt injection information to the     kvm_exit and kvm_entry tracepoints respectively   - Fix a relatively benign flaw where KVM would end up redoing RDPKRU     when loading guest/host PKRU, due to a refactoring of the kernel     helpers that didn&apos;t account for KVM&apos;s pre-checking of the need to     do WRPKRU   - Make the completion of hypercalls go through the complete_hypercall     function pointer argument, no matter if the hypercall exits to     userspace or not.     Previously, the code assumed that KVM_HC_MAP_GPA_RANGE specifically     went to userspace, and all the others did not; the new code need     not special case KVM_HC_MAP_GPA_RANGE and in fact does not care at     all whether there was an exit to userspace or not   - As part of enabling TDX virtual machines, support support     separation of private/shared EPT into separate roots.     When TDX will be enabled, operations on private pages will need to     go through the privileged TDX Module via SEAMCALLs; as a result,     they are limited and relatively slow compared to reading a PTE.     The patches included in 6.14 allow KVM to keep a mirror of the     private EPT in host memory, and define entries in kvm_x86_ops to     operate on external page tables such as the TDX private EPT   - The recently introduced conversion of the NX-page reclamation     kthread to vhost_task moved the task under the main process. The     task is created as soon as KVM_CREATE_VM was invoked and this, of     course, broke userspace that didn&apos;t expect to see any child task of     the VM process until it started creating its own userspace threads.     In particular crosvm refuses to fork() if procfs shows any child     task, so unbreak it by creating the task lazily. This is arguably a     userspace bug, as there can be other kinds of legitimate worker     tasks and they wouldn&apos;t impede fork(); but it&apos;s not like userspace     has a way to distinguish kernel worker tasks right now. Should they     show as &quot;Kthread: 1&quot; in proc/.../status?  x86 - Intel:   - Fix a bug where KVM updates hardware&apos;s APICv cache of the highest     ISR bit while L2 is active, while ultimately results in a     hardware-accelerated L1 EOI effectively being lost   - Honor event priority when emulating Posted Interrupt delivery     during nested VM-Enter by queueing KVM_REQ_EVENT instead of     immediately handling the interrupt   - Rework KVM&apos;s processing of the Page-Modification Logging buffer to     reap entries in the same order they were created, i.e. to mark gfns     dirty in the same order that hardware marked the page/PTE dirty   - Misc cleanups  Generic:   - Cleanup and harden kvm_set_memory_region(); add proper lockdep     assertions when setting memory regions and add a dedicated API for     setting KVM-internal memory regions. The API can then explicitly     disallow all flags for KVM-internal memory regions   - Explicitly verify the target vCPU is online in kvm_get_vcpu() to     fix a bug where KVM would return a pointer to a vCPU prior to it     being fully online, and give kvm_for_each_vcpu() similar treatment     to fix a similar flaw   - Wait for a vCPU to come online prior to executing a vCPU ioctl, to     fix a bug where userspace could coerce KVM into handling the ioctl     on a vCPU that isn&apos;t yet onlined   - Gracefully handle xarray insertion failures; even though such     failures are impossible in practice after xa_reserve(), reserving     an entry is always followed by xa_store() which does not know (or     differentiate) whether there was an xa_reserve() before or not  RISC-V:   - Zabha, Svvptc, and Ziccrse extension support for guests. None of     them require anything in KVM except for detecting them and marking     them as supported; Zabha adds byte and halfword atomic operations,     while the others are markers for specific operation of the TLB and     of LL/SC instructions respectively   - Virtualize SBI system suspend extension for Guest/VM   - Support firmware counters which can be used by the guests to     collect statistics about traps that occur in the host  Selftests:   - Rework vcpu_get_reg() to return a value instead of using an     out-param, and update all affected arch code accordingly   - Convert the max_guest_memory_test into a more generic     mmu_stress_test. The basic gist of the &quot;conversion&quot; is to have the     test do mprotect() on guest memory while vCPUs are accessing said     memory, e.g. to verify KVM and mmu_notifiers are working as     intended   - Play nice with treewrite builds of unsupported architectures, e.g.     arm (32-bit), as KVM selftests&apos; Makefile doesn&apos;t do anything to     ensure the target architecture is actually one KVM selftests     supports   - Use the kernel&apos;s $(ARCH) definition instead of the target triple     for arch specific directories, e.g. arm64 instead of aarch64,     mainly so as not to be different from the rest of the kernel   - Ensure that format strings for logging statements are checked by     the compiler even when the logging statement itself is disabled   - Attempt to whack the last LLC references/misses mole in the Intel     PMU counters test by adding a data load and doing CLFLUSH{OPT} on     the data instead of the code being executed. It seems that modern     Intel CPUs have learned new code prefetching tricks that bypass the     PMU counters   - Fix a flaw in the Intel PMU counters test where it asserts that     events are counting correctly without actually knowing what the     events count given the underlying hardware; this can happen if     Intel reuses a formerly microarchitecture-specific event encoding     as an architectural event, as was the case for Top-Down Slots&quot;* tag &apos;for-linus&apos; of git://git.kernel.org/pub/scm/virt/kvm/kvm: (151 commits)  kvm: defer huge page recovery vhost task to later  KVM: x86/mmu: Return RET_PF* instead of 1 in kvm_mmu_page_fault()  KVM: Disallow all flags for KVM-internal memslots  KVM: x86: Drop double-underscores from __kvm_set_memory_region()  KVM: Add a dedicated API for setting KVM-internal memslots  KVM: Assert slots_lock is held when setting memory regions  KVM: Open code kvm_set_memory_region() into its sole caller (ioctl() API)  LoongArch: KVM: Add hypercall service support for usermode VMM  LoongArch: KVM: Clear LLBCTL if secondary mmu mapping is changed  KVM: SVM: Use str_enabled_disabled() helper in svm_hardware_setup()  KVM: VMX: read the PML log in the same order as it was written  KVM: VMX: refactor PML terminology  KVM: VMX: Fix comment of handle_vmx_instruction()  KVM: VMX: Reinstate __exit attribute for vmx_exit()  KVM: SVM: Use str_enabled_disabled() helper in sev_hardware_setup()  KVM: x86: Avoid double RDPKRU when loading host/guest PKRU  KVM: x86: Use LVT_TIMER instead of an open coded literal  RISC-V: KVM: Add new exit statstics for redirected traps  RISC-V: KVM: Update firmware counters for various events  RISC-V: KVM: Redirect instruction access fault trap to guest  ...

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Sat, 25 Jan 2025 18:55:09 +0100</pubDate>
        <dc:creator>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</dc:creator>
    </item>
<item>
        <title>a066bad89c6c79890bb8f45aef8662dcd0562a62 - Merge tag &apos;kvm-selftests-treewide-6.14&apos; of https://github.com/kvm-x86/linux into HEAD</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#a066bad89c6c79890bb8f45aef8662dcd0562a62</link>
        <description>Merge tag &apos;kvm-selftests-treewide-6.14&apos; of https://github.com/kvm-x86/linux into HEADKVM selftests &quot;tree&quot;-wide changes for 6.14: - Rework vcpu_get_reg() to return a value instead of using an out-param, and   update all affected arch code accordingly. - Convert the max_guest_memory_test into a more generic mmu_stress_test.   The basic gist of the &quot;conversion&quot; is to have the test do mprotect() on   guest memory while vCPUs are accessing said memory, e.g. to verify KVM   and mmu_notifiers are working as intended. - Play nice with treewrite builds of unsupported architectures, e.g. arm   (32-bit), as KVM selftests&apos; Makefile doesn&apos;t do anything to ensure the   target architecture is actually one KVM selftests supports. - Use the kernel&apos;s $(ARCH) definition instead of the target triple for arch   specific directories, e.g. arm64 instead of aarch64, mainly so as not to   be different from the rest of the kernel.

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Thu, 19 Dec 2024 13:50:06 +0100</pubDate>
        <dc:creator>Paolo Bonzini &lt;pbonzini@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>67730e6c53d70fb31618230f81c4acee9f72eaa3 - KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c#67730e6c53d70fb31618230f81c4acee9f72eaa3</link>
        <description>KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directoriesUse the kernel&apos;s canonical $(ARCH) paths instead of the raw target triplefor KVM selftests directories.  KVM selftests are quite nearly the onlyplace in the entire kernel that using the target triple for directories,tools/testing/selftests/drivers/s390x being the lone holdout.Using the kernel&apos;s preferred nomenclature eliminates the minor, butannoying, friction of having to translate to KVM&apos;s selftests directories,e.g. for pattern matching, opening files, running selftests, etc.Opportunsitically delete file comments that reference the full path of thefile, as they are obviously prone to becoming stale, and serve no knownpurpose.Reviewed-by: Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;Acked-by: Claudio Imbrenda &lt;imbrenda@linux.ibm.com&gt;Acked-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;Link: https://lore.kernel.org/r/20241128005547.4077116-16-seanjc@google.comSigned-off-by: Sean Christopherson &lt;seanjc@google.com&gt;

            List of files:
            /linux/tools/testing/selftests/kvm/x86/sev_migrate_tests.c</description>
        <pubDate>Thu, 28 Nov 2024 01:55:46 +0100</pubDate>
        <dc:creator>Sean Christopherson &lt;seanjc@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
