[libvirt PATCH v2] Add basically RISC-V support

2022-09-28 Thread Yu Gu
This patch provides basic support for the RISC-V architecture, so libvirt can run in RISC-V machine. Signed-off-by: Yu Gu --- po/POTFILES | 1 + src/cpu/cpu.c | 2 + src/cpu/cpu.h | 2 + src/cpu/cpu_riscv64.c | 118

[PATCH] virt-aa-helper: allow common riscv64 loader paths

2022-09-28 Thread christian . ehrhardt
From: Christian Ehrhardt Riscv64 usually uses u-boot as external -kernel and a loader from the open implementation of RISC-V SBI. The paths for those binaries as packaged in Debian and Ubuntu are in paths which are usually forbidden to be added by the user under /usr/lib... People used to start

[PATCH 2/3] qemu: get the stackManager lock before getting nested lock

2022-09-28 Thread Jiang Jiacheng
When creating a VM by forking, there is a logic that get the lock of StacksecurityManager before get other nested lock to avoid deadlock between child process and thread of the parent. While in `virQEMUDriverCreateCapabilities` and `qemuDomainGetSecurityLabelList`, we get nested lock without

Re: [libvirt PATCH v2 02/16] qemu: Add qemuNbdkitCaps to qemu driver

2022-09-28 Thread Jonathon Jongsma
On 9/19/22 9:09 AM, Peter Krempa wrote: +{ +qemuNbdkitCaps *nbdkit = QEMU_NBDKIT_CAPS(object); + +g_clear_pointer(>path, g_free); +g_clear_pointer(>version, g_free); +g_clear_pointer(>flags, virBitmapFree); + +G_OBJECT_CLASS(qemu_nbdkit_caps_parent_class)->finalize(object);

Re: [libvirt] [PATCH v2] qemu: Remove host-passthrough validation check for host-phys-bits=on

2022-09-28 Thread Jim Fehlig
On 9/8/22 01:07, Lin Ma wrote: Besides the -cpu host, The host-phys-bits=on applies to custom or max cpu model, So the host-passthrough validation check is unnecessary for maxphysaddr with mode='passthrough'. Signed-off-by: Lin Ma --- src/qemu/qemu_validate.c | 7

[PATCH 0/3] fix some issue in concurrency scenarios

2022-09-28 Thread Jiang Jiacheng
Jiang Jiacheng (3): qemu: Init address before qemuProcessShutdownOrReboot during reconnect process qemu: get the stackManager lock before getting nested lock qemu: back up the path in qemuMonitorOpen src/qemu/qemu_conf.c| 6 +- src/qemu/qemu_driver.c | 3 +++

[PATCH 1/3] qemu: Init address before qemuProcessShutdownOrReboot during reconnect process

2022-09-28 Thread Jiang Jiacheng
When libvirt is restarted, the qemuProcessShutdownReboot command is executed to restore the VM that is being restarted. In this case, a coredump may occur when we hotplug a pci device since the PCI address hasn't be inited yet. Moving the initialization of address to the front of

[PATCH 3/3] qemu: back up the path in qemuMonitorOpen

2022-09-28 Thread Jiang Jiacheng
In the case of concurrent VM operations, it is possible to have a null pointer reference in qemuMonitorOpen. In the case of concurrent VM shutdown, the priv->monconf will be changed in qemuProcessStop. qemuMonitorOpen releases the lock before calling qemuMonitorOpenUnix and then references

Re: [libvirt PATCH v2 06/16] qemu: implement persistent file cache for nbdkit caps

2022-09-28 Thread Jonathon Jongsma
On 9/27/22 6:49 AM, Peter Krempa wrote: + +if (virXPathLongLong("string(./selfctime)", ctxt, ) < 0) { +virReportError(VIR_ERR_XML_ERROR, "%s", + _("missing selfctime in nbdkit capabilities XML")); +return -1; +} +nbdkitCaps->libvirtCtime =

[PATCH v3] cpu_map: Introduce Neoverse N1/N2/V1

2022-09-28 Thread Zhenyu Zhang
Add Neoverse N1/N2/V1 as a supported cpu model. Signed-off-by: Zhenyu Zhang v2: https://listman.redhat.com/archives/libvir-list/2022-September/234512.html v1: https://listman.redhat.com/archives/libvir-list/2022-September/234294.html Changelog = v3: * Remove the Ampere vendor from