[PATCH] KVM: allow NULL writable argument to __kvm_faultin_pfn

2024-12-31 Thread Paolo Bonzini
kvm_follow_pfn() is able to work with NULL in the .map_writable field of the homonymous struct. But __kvm_faultin_pfn() rejects the combo despite KVM for e500 trying to use it. Indeed .map_writable is not particularly useful if the flags include FOLL_WRITE and readonly guest memory is not support

[PATCH v5 3/3] powerpc: Document details on H_HTM hcall

2024-12-31 Thread Abhishek Dubey
Add documentation to 'papr_hcalls.rst' describing the input, output and return values of the H_HTM hcall as per the internal specification. v3 patch: https://lore.kernel.org/linuxppc-dev/20240828085223.42177-3-ma...@linux.ibm.com/ Signed-off-by: Abhishek Dubey Co-developed-by: Madhavan Sriniv

[PATCH v5 2/3] powerpc/pseries: Export hardware trace macro dump via debugfs

2024-12-31 Thread Abhishek Dubey
This patch adds debugfs interface to export Hardware Trace Macro (HTM) function data in a LPAR. New hypervisor call "H_HTM" has been defined to setup, configure, control and dump the HTM data. This patch supports only dumping of HTM data in a LPAR. New debugfs folder called "htmdump" has been added

[PATCH v5 1/3] powerpc/pseries: Macros and wrapper functions for H_HTM call

2024-12-31 Thread Abhishek Dubey
Define macros and wrapper functions to handle H_HTM (Hardware Trace Macro) hypervisor call. H_HTM is new HCALL added to export data from Hardware Trace Macro (HTM) function. v3 patch: https://lore.kernel.org/linuxppc-dev/20240828085223.42177-1-ma...@linux.ibm.com/ Signed-off-by: Abhishek Dubey

KVM: PPC: Book3E: KVM HV host module doesn't work anymore

2024-12-31 Thread Christian Zigotzky
Hi All, I have compiled the RC5 of kernel 6.13 [1] with the latest revert patch. [2] After that, I successfully tested the following QEMU/KVM HV components. - Guest performance: good - Guest boot time: short - KVM HV works (-enable-kvm) - SMP works (-smp 4) - QEMU User Networking (SLIRP) via Vi

Re: [PATCH v2 0/3] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

2024-12-31 Thread Thomas Weißschuh
On 2024-12-30 16:50:41-0800, Alexei Starovoitov wrote: > On Sat, Dec 28, 2024 at 12:43 AM Thomas Weißschuh > wrote: > > > > Most users use this function through the BIN_ATTR_SIMPLE* macros, > > they can handle the switch transparently. > > > > This series is meant to be merged through the driver