On Mon, 08 Jan 2024 14:30:14 +0800, Dan Wu wrote: > KVM switched to use interrupt for 'page ready' APF event since Linux v5.10 and > the legacy mechanism using #PF was deprecated. Interrupt-based 'page-ready' > notification requires KVM_ASYNC_PF_DELIVERY_AS_INT to be set as well in > MSR_KVM_ASYNC_PF_EN to enable asyncpf. > > Update asyncpf.c for the new interrupt-based notification. > It checks (KVM_FEATURE_ASYNC_PF && KVM_FEATURE_ASYNC_PF_INT) and implement > interrupt-based 'page-ready' handler. > > [...] Applied to kvm-x86 next, with one tweak. To avoid failures in the common case of running without configuring cgroups, I changed the asyncpf_num check to skip instead of assert: if (!asyncpf_num) report_skip("No async page fault events, cgroup configuration likely needed"); else report_pass("Serviced %d async page faults events (!PRESENT #PF + READY IRQ)", asyncpf_num); Thanks! [1/1] x86/asyncpf: fix async page fault issues https://github.com/kvm-x86/kvm-unit-tests/commit/3ed8e382d4cb -- https://github.com/kvm-x86/kvm-unit-tests/tree/next