On Wed, Feb 21, 2024 at 06:46:05PM +0800, Xianglai Li wrote: > Implement support for loongarch64 in the QEMU driver. > > Signed-off-by: Xianglai Li <lixianglai@xxxxxxxxxxx> > --- > src/qemu/qemu_capabilities.c | 7 +++--- > src/qemu/qemu_command.c | 7 ++++-- > src/qemu/qemu_domain.c | 41 +++++++++++++++++++++++++++++++++--- > src/qemu/qemu_domain.h | 1 + > src/qemu/qemu_validate.c | 1 + > 5 files changed, 49 insertions(+), 8 deletions(-) This covers almost everything, except for setting a reasonable default model for SCSI controllers. Please squash in the diff below to take care of that. diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index c46d1b109a..ed88cc881d 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4116,7 +4116,7 @@ qemuDomainGetSCSIControllerModel(const virDomainDef *def, if (qemuDomainIsPSeries(def)) return VIR_DOMAIN_CONTROLLER_MODEL_SCSI_IBMVSCSI; - if (ARCH_IS_S390(def->os.arch)) + if (ARCH_IS_S390(def->os.arch) || qemuDomainIsLoongArchVirt(def)) return VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_SCSI; if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_LSI)) return VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSILOGIC; -- Andrea Bolognani / Red Hat / Virtualization _______________________________________________ Devel mailing list -- devel@xxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx