]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc: spapr: Enable 2nd DAWR on Power10 pSeries machine
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Fri, 17 Jan 2025 04:07:01 +0000 (04:07 +0000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:32 +0000 (22:43 +1000)
commit5f361ea187ba5f876757d4c90952ff23810f24f5
tree194f59783b99356ec12c1f1dd78097a88b13dfaa
parent7ea6e125297050a239b4028cae5ea3ffbc374861
ppc: spapr: Enable 2nd DAWR on Power10 pSeries machine

As per the PAPR, bit 0 of byte 64 in pa-features property
indicates availability of 2nd DAWR registers. i.e. If this bit is set, 2nd
DAWR is present, otherwise not. Use KVM_CAP_PPC_DAWR1 capability to find
whether kvm supports 2nd DAWR or not. If it's supported, allow user to set
the pa-feature bit in guest DT using cap-dawr1 machine capability.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Message-ID: <173708681866.1678.11128625982438367069.stgit@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/spapr.c
hw/ppc/spapr_caps.c
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h