]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src/cpu: add a basic RiscV64 cpu driver
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Fri, 6 Jan 2023 16:49:56 +0000 (13:49 -0300)
committerDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Tue, 24 Jan 2023 16:24:20 +0000 (13:24 -0300)
commitfd703358764c64a62e42f14bfe0354fd07c29b83
tree6a5fd19993e7f75737b89d73b95de6aa3eed7399
parent1e2605c934b80c3e9c30e929834d38fee86f184e
src/cpu: add a basic RiscV64 cpu driver

There are tests in qemuxml2argvtest that will fail if we enable RISC-V
testing, with an error like the following:

"cpuGetSubDriver:64 : this function is not supported by the connection
driver: 'riscv64' architecture is not supp orted by CPU driver"

This happens because we don't have a RISC-V driver yet.

Add a barebone RISC-V driver to allow tests to be executed. The only 2
callbacks implemented here are 'compare' and 'validateFeatures', both
acting as a no-op. More callbacks and features will be added in the
future.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
src/cpu/cpu.c
src/cpu/cpu_riscv64.c [new file with mode: 0644]
src/cpu/cpu_riscv64.h [new file with mode: 0644]
src/cpu/meson.build