qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv, kvm: support KVM_GET_REG_LIST
@ 2023-10-03 11:32 Daniel Henrique Barboza
  2023-10-03 11:32 ` [PATCH 1/2] target/riscv/kvm: improve 'init_multiext_cfg' error msg Daniel Henrique Barboza
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Daniel Henrique Barboza @ 2023-10-03 11:32 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, alistair.francis, bmeng, liweiwei, zhiwei_liu, palmer,
	ajones, Daniel Henrique Barboza

Hi,

Starting on Linux 6.6 the QEMU RISC-V KVM driver now supports
KMV_GET_REG_LIST. This API will make it simpler for the QEMU KVM driver
to determine whether a KVM reg is present or not.

We'll use this API to fetch ISA_EXT regs during init(). The current
logic will be put in a legacy() helper and will still be used in case
the host KVM module does not support get-reg-list.

Patch 1 contains error handling changes in kvm_riscv_init_multiext_cfg()
where we're using &error_fatal and errno. 


Daniel Henrique Barboza (2):
  target/riscv/kvm: improve 'init_multiext_cfg' error msg
  target/riscv/kvm: support KVM_GET_REG_LIST

 target/riscv/kvm/kvm-cpu.c | 100 +++++++++++++++++++++++++++++++++++--
 1 file changed, 95 insertions(+), 5 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-09  1:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 11:32 [PATCH 0/2] riscv, kvm: support KVM_GET_REG_LIST Daniel Henrique Barboza
2023-10-03 11:32 ` [PATCH 1/2] target/riscv/kvm: improve 'init_multiext_cfg' error msg Daniel Henrique Barboza
2023-10-03 11:53   ` Philippe Mathieu-Daudé
2023-10-03 11:32 ` [PATCH 2/2] target/riscv/kvm: support KVM_GET_REG_LIST Daniel Henrique Barboza
2023-10-09  1:14 ` [PATCH 0/2] riscv, kvm: " Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).