]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: Move KVM_REG_SIZE() definition to common uAPI header
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 00:55:32 +0000 (16:55 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 17 Dec 2024 16:49:48 +0000 (08:49 -0800)
commit915d2f0718a42ee0b334be34cc53664a865a5928
treeb610874a9766a358031815d327852d22a3a8b7df
parent3522c419758ee8dca5a0e8753ee0070a22157bc1
KVM: Move KVM_REG_SIZE() definition to common uAPI header

Define KVM_REG_SIZE() in the common kvm.h header, and delete the arm64 and
RISC-V versions.  As evidenced by the surrounding definitions, all aspects
of the register size encoding are generic, i.e. RISC-V should have moved
arm64's definition to common code instead of copy+pasting.

Acked-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20241128005547.4077116-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/arm64/include/uapi/asm/kvm.h
arch/riscv/include/uapi/asm/kvm.h
include/uapi/linux/kvm.h