OSDN Git Service

target/riscv/kvm/kvm-cpu.c: add missing property getters()
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Wed, 18 Oct 2023 19:56:33 +0000 (16:56 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 7 Nov 2023 01:02:17 +0000 (11:02 +1000)
commit456a65546f6761aab09275ed7055d113608e3bb2
tree8d93c2a8ac8410568d5e0962b56236622bf651b4
parent257cfaed47e3263ee3c379ec7a766f5050daa920
target/riscv/kvm/kvm-cpu.c: add missing property getters()

We got along without property getters in the KVM driver because we never
needed them. But the incoming query-cpu-model-expansion API will use
property getters and setters to retrieve the CPU characteristics.

Add the missing getters for the KVM driver for both MISA and
multi-letter extension properties. We're also adding an special getter
for absent multi-letter properties that KVM doesn't implement that
always return false.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20231018195638.211151-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/kvm/kvm-cpu.c