mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge tag 'pull-request-2023-12-20' of https://gitlab.com/thuth/qemu into staging
* Add compat machines for QEMU 9.0 * Some header clean-ups by Philippe * Restrict type names to alphanumerical range (and a few special characters) * Fix analyze-migration.py script on s390x * Clean up and improve some tests * Document handling of commas in CLI options parameters # -----BEGIN PGP SIGNATURE----- # # iQJFBAABCAAvFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmWCtYsRHHRodXRoQHJl # ZGhhdC5jb20ACgkQLtnXdP5wLbWLnw//cNJrxG0V+j0iakX+C7HRumVrLBDI4KYY # Cp2Hx92SyeQ0Kk8DJS6JueTV0SLjMsV77APu2YPH7ELmPlk+CB9gqmV7xVoYNvsm # QbRPlIjFw8MHLekadc2A+C+pn48tWACoOdBEDIfazKrxybnf0B57RC/fIfMKHjbs # 2ALCoFbbgphs7yWuzTHK8ayKaGMhUVkWfzHQwpnq899olHyZBhkl951uKJA6VmLx # KvggePkpszLjmmXA8MH1hDCcizki31cB0ZKTbQFCyE42s2S3Hvg0GueU90O7Y1cj # lS5tPVQxyEhUYMLL+/hudlf2OYqVn2BalB7ieUQIy6rG8yoc9zxfIKQi0ccl+2oA # s8HRq5S0bSjtilQogU1LQL/Gk6W1/N9MmnhKvCGB+BTK5KX7s4EQk02y9gGZm/8s # pMErMyaXTG4dLiTAK42VgMVDqCYvzBmE+Gj91OmoUR7fb+VMrsWxeBFxMPDn+VtL # TMJegIFsjw2QCSitcU4v+nP0qtKgXGbuZtrGXKabrxH5PmeQFJDSM7TwpTK4qvjK # QMIQKBbz8BfJnUzN8qAaaJEpp1T5tcMJClKtfcgxq/+VyaSaHLmD0cljqBC+g+y7 # FTo+fa7oYx44sAlqapdEXBSGn4T+J26iuCef13CCCiPfYBv/tk3b2E0AWHj4y58I # +VpInjUaPBQ= # =TA1/ # -----END PGP SIGNATURE----- # gpg: Signature made Wed 20 Dec 2023 04:36:11 EST # gpg: using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5 # gpg: issuer "thuth@redhat.com" # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full] # gpg: aka "Thomas Huth <thuth@redhat.com>" [full] # gpg: aka "Thomas Huth <huth@tuxfamily.org>" [full] # gpg: aka "Thomas Huth <th.huth@posteo.de>" [unknown] # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3 EAB9 2ED9 D774 FE70 2DB5 * tag 'pull-request-2023-12-20' of https://gitlab.com/thuth/qemu: tests/unit/test-qmp-event: Replace fixture by global variables tests/unit/test-qmp-event: Simplify event emission check tests/unit/test-qmp-event: Drop superfluous mutex tests/qtest/npcm7xx_pwm-test: Only do full testing in slow mode qemu-options: Clarify handling of commas in options parameters tests/qtest/migration-test: Fix analyze-migration.py for s390x qom/object: Limit type names to alphanumerical and some few special characters tests/unit/test-io-task: Rename "qemu:dummy" to avoid colon in the name memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type name hw: Replace anti-social QOM type names (again) docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl" target: Restrict 'sysemu/reset.h' to system emulation hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header hw/misc/mips_itu: Remove unnecessary 'exec/exec-all.h' header hw/ppc/spapr_hcall: Remove unused 'exec/exec-all.h' included header system/qtest: Restrict QTest API to system emulation system/qtest: Include missing 'hw/core/cpu.h' header MAINTAINERS: Add some more vmware-related files to the corresponding section hw: Add compat machines for 9.0 Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
@@ -2399,8 +2399,13 @@ F: hw/net/net_tx_pkt*
|
||||
Vmware
|
||||
M: Dmitry Fleytman <dmitry.fleytman@gmail.com>
|
||||
S: Maintained
|
||||
F: docs/specs/vmw_pvscsi-spec.txt
|
||||
F: hw/display/vmware_vga.c
|
||||
F: hw/net/vmxnet*
|
||||
F: hw/scsi/vmw_pvscsi*
|
||||
F: pc-bios/efi-vmxnet3.rom
|
||||
F: pc-bios/vgabios-vmware.bin
|
||||
F: roms/config.vga-vmware
|
||||
F: tests/qtest/vmxnet3-test.c
|
||||
F: docs/specs/vwm_pvscsi-spec.rst
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ To use a different index value, N, from default of 0, add:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
-global xlnx,bbram-ctrl.drive-index=N
|
||||
-global driver=xlnx.bbram-ctrl,property=drive-index,value=N
|
||||
|
||||
eFUSE File Backend
|
||||
""""""""""""""""""
|
||||
@@ -212,7 +212,7 @@ To use a different index value, N, from default of 1, add:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
-global xlnx,efuse.drive-index=N
|
||||
-global xlnx-efuse.drive-index=N
|
||||
|
||||
.. warning::
|
||||
In actual physical Versal, BBRAM and eFUSE contain sensitive data.
|
||||
|
||||
@@ -10,6 +10,11 @@ Invocation
|
||||
disk_image is a raw hard disk image for IDE hard disk 0. Some targets do
|
||||
not need a disk image.
|
||||
|
||||
When dealing with options parameters as arbitrary strings containing
|
||||
commas, such as in "file=my,file" and "string=a,b", it's necessary to
|
||||
double the commas. For instance,"-fw_cfg name=z,string=a,,b" will be
|
||||
parsed as "-fw_cfg name=z,string=a,b".
|
||||
|
||||
.. hxtool-doc:: qemu-options.hx
|
||||
|
||||
Device URL Syntax
|
||||
|
||||
@@ -31,6 +31,11 @@ Options
|
||||
disk_image is a raw hard disk image for IDE hard disk 0. Some targets do
|
||||
not need a disk image.
|
||||
|
||||
When dealing with options parameters as arbitrary strings containing
|
||||
commas, such as in "file=my,file" and "string=a,b", it's necessary to
|
||||
double the commas. For instance,"-fw_cfg name=z,string=a,,b" will be
|
||||
parsed as "-fw_cfg name=z,string=a,b".
|
||||
|
||||
.. hxtool-doc:: qemu-options.hx
|
||||
|
||||
.. include:: keys.rst.inc
|
||||
|
||||
+9
-2
@@ -3181,10 +3181,17 @@ static void machvirt_machine_init(void)
|
||||
}
|
||||
type_init(machvirt_machine_init);
|
||||
|
||||
static void virt_machine_8_2_options(MachineClass *mc)
|
||||
static void virt_machine_9_0_options(MachineClass *mc)
|
||||
{
|
||||
}
|
||||
DEFINE_VIRT_MACHINE_AS_LATEST(8, 2)
|
||||
DEFINE_VIRT_MACHINE_AS_LATEST(9, 0)
|
||||
|
||||
static void virt_machine_8_2_options(MachineClass *mc)
|
||||
{
|
||||
virt_machine_9_0_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
}
|
||||
DEFINE_VIRT_MACHINE(8, 2)
|
||||
|
||||
static void virt_machine_8_1_options(MachineClass *mc)
|
||||
{
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
#include "hw/virtio/virtio-net.h"
|
||||
#include "audio/audio.h"
|
||||
|
||||
GlobalProperty hw_compat_8_2[] = {};
|
||||
const size_t hw_compat_8_2_len = G_N_ELEMENTS(hw_compat_8_2);
|
||||
|
||||
GlobalProperty hw_compat_8_1[] = {
|
||||
{ TYPE_PCI_BRIDGE, "x-pci-express-writeable-slt-bug", "true" },
|
||||
{ "ramfb", "x-migrate", "off" },
|
||||
|
||||
@@ -78,6 +78,9 @@
|
||||
{ "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
|
||||
{ "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },
|
||||
|
||||
GlobalProperty pc_compat_8_2[] = {};
|
||||
const size_t pc_compat_8_2_len = G_N_ELEMENTS(pc_compat_8_2);
|
||||
|
||||
GlobalProperty pc_compat_8_1[] = {};
|
||||
const size_t pc_compat_8_1_len = G_N_ELEMENTS(pc_compat_8_1);
|
||||
|
||||
|
||||
+14
-3
@@ -545,13 +545,26 @@ static void pc_i440fx_machine_options(MachineClass *m)
|
||||
"Use a different south bridge than PIIX3");
|
||||
}
|
||||
|
||||
static void pc_i440fx_8_2_machine_options(MachineClass *m)
|
||||
static void pc_i440fx_9_0_machine_options(MachineClass *m)
|
||||
{
|
||||
pc_i440fx_machine_options(m);
|
||||
m->alias = "pc";
|
||||
m->is_default = true;
|
||||
}
|
||||
|
||||
DEFINE_I440FX_MACHINE(v9_0, "pc-i440fx-9.0", NULL,
|
||||
pc_i440fx_9_0_machine_options);
|
||||
|
||||
static void pc_i440fx_8_2_machine_options(MachineClass *m)
|
||||
{
|
||||
pc_i440fx_9_0_machine_options(m);
|
||||
m->alias = NULL;
|
||||
m->is_default = false;
|
||||
|
||||
compat_props_add(m->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
compat_props_add(m->compat_props, pc_compat_8_2, pc_compat_8_2_len);
|
||||
}
|
||||
|
||||
DEFINE_I440FX_MACHINE(v8_2, "pc-i440fx-8.2", NULL,
|
||||
pc_i440fx_8_2_machine_options);
|
||||
|
||||
@@ -560,8 +573,6 @@ static void pc_i440fx_8_1_machine_options(MachineClass *m)
|
||||
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
||||
|
||||
pc_i440fx_8_2_machine_options(m);
|
||||
m->alias = NULL;
|
||||
m->is_default = false;
|
||||
pcmc->broken_32bit_mem_addr_check = true;
|
||||
|
||||
compat_props_add(m->compat_props, hw_compat_8_1, hw_compat_8_1_len);
|
||||
|
||||
+12
-1
@@ -383,12 +383,23 @@ static void pc_q35_machine_options(MachineClass *m)
|
||||
machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE);
|
||||
}
|
||||
|
||||
static void pc_q35_8_2_machine_options(MachineClass *m)
|
||||
static void pc_q35_9_0_machine_options(MachineClass *m)
|
||||
{
|
||||
pc_q35_machine_options(m);
|
||||
m->alias = "q35";
|
||||
}
|
||||
|
||||
DEFINE_Q35_MACHINE(v9_0, "pc-q35-9.0", NULL,
|
||||
pc_q35_9_0_machine_options);
|
||||
|
||||
static void pc_q35_8_2_machine_options(MachineClass *m)
|
||||
{
|
||||
pc_q35_9_0_machine_options(m);
|
||||
m->alias = NULL;
|
||||
compat_props_add(m->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
compat_props_add(m->compat_props, pc_compat_8_2, pc_compat_8_2_len);
|
||||
}
|
||||
|
||||
DEFINE_Q35_MACHINE(v8_2, "pc-q35-8.2", NULL,
|
||||
pc_q35_8_2_machine_options);
|
||||
|
||||
|
||||
+9
-2
@@ -346,10 +346,17 @@ type_init(virt_machine_register_types)
|
||||
} \
|
||||
type_init(machvirt_machine_##major##_##minor##_init);
|
||||
|
||||
static void virt_machine_8_2_options(MachineClass *mc)
|
||||
static void virt_machine_9_0_options(MachineClass *mc)
|
||||
{
|
||||
}
|
||||
DEFINE_VIRT_MACHINE(8, 2, true)
|
||||
DEFINE_VIRT_MACHINE(9, 0, true)
|
||||
|
||||
static void virt_machine_8_2_options(MachineClass *mc)
|
||||
{
|
||||
virt_machine_9_0_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
}
|
||||
DEFINE_VIRT_MACHINE(8, 2, false)
|
||||
|
||||
static void virt_machine_8_1_options(MachineClass *mc)
|
||||
{
|
||||
|
||||
+2
-1
@@ -22,9 +22,10 @@
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qapi/error.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "hw/core/cpu.h"
|
||||
#include "hw/misc/mips_itu.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "target/mips/cpu.h"
|
||||
|
||||
#define ITC_TAG_ADDRSPACE_SZ (ITC_ADDRESSMAP_NUM * 8)
|
||||
/* Initialize as 4kB area to fit all 32 cells with default 128B grain.
|
||||
|
||||
+14
-3
@@ -4786,14 +4786,25 @@ static void spapr_machine_latest_class_options(MachineClass *mc)
|
||||
type_init(spapr_machine_register_##suffix)
|
||||
|
||||
/*
|
||||
* pseries-8.2
|
||||
* pseries-9.0
|
||||
*/
|
||||
static void spapr_machine_8_2_class_options(MachineClass *mc)
|
||||
static void spapr_machine_9_0_class_options(MachineClass *mc)
|
||||
{
|
||||
/* Defaults for the latest behaviour inherited from the base class */
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(8_2, "8.2", true);
|
||||
DEFINE_SPAPR_MACHINE(9_0, "9.0", true);
|
||||
|
||||
/*
|
||||
* pseries-8.2
|
||||
*/
|
||||
static void spapr_machine_8_2_class_options(MachineClass *mc)
|
||||
{
|
||||
spapr_machine_9_0_class_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(8_2, "8.2", false);
|
||||
|
||||
/*
|
||||
* pseries-8.1
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "exec/tb-flush.h"
|
||||
#include "helper_regs.h"
|
||||
#include "hw/ppc/ppc.h"
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include "qemu/cutils.h"
|
||||
#include "qemu/option.h"
|
||||
#include "standard-headers/linux/virtio_ids.h"
|
||||
#include "exec/exec-all.h"
|
||||
|
||||
#define KERN_IMAGE_START 0x010000UL
|
||||
#define LINUX_MAGIC_ADDR 0x010008UL
|
||||
|
||||
@@ -855,14 +855,26 @@ bool css_migration_enabled(void)
|
||||
} \
|
||||
type_init(ccw_machine_register_##suffix)
|
||||
|
||||
static void ccw_machine_9_0_instance_options(MachineState *machine)
|
||||
{
|
||||
}
|
||||
|
||||
static void ccw_machine_9_0_class_options(MachineClass *mc)
|
||||
{
|
||||
}
|
||||
DEFINE_CCW_MACHINE(9_0, "9.0", true);
|
||||
|
||||
static void ccw_machine_8_2_instance_options(MachineState *machine)
|
||||
{
|
||||
ccw_machine_9_0_instance_options(machine);
|
||||
}
|
||||
|
||||
static void ccw_machine_8_2_class_options(MachineClass *mc)
|
||||
{
|
||||
ccw_machine_9_0_class_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_8_2, hw_compat_8_2_len);
|
||||
}
|
||||
DEFINE_CCW_MACHINE(8_2, "8.2", true);
|
||||
DEFINE_CCW_MACHINE(8_2, "8.2", false);
|
||||
|
||||
static void ccw_machine_8_1_instance_options(MachineState *machine)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ typedef struct IOMMUMemoryRegionClass IOMMUMemoryRegionClass;
|
||||
DECLARE_OBJ_CHECKERS(IOMMUMemoryRegion, IOMMUMemoryRegionClass,
|
||||
IOMMU_MEMORY_REGION, TYPE_IOMMU_MEMORY_REGION)
|
||||
|
||||
#define TYPE_RAM_DISCARD_MANAGER "qemu:ram-discard-manager"
|
||||
#define TYPE_RAM_DISCARD_MANAGER "ram-discard-manager"
|
||||
typedef struct RamDiscardManagerClass RamDiscardManagerClass;
|
||||
typedef struct RamDiscardManager RamDiscardManager;
|
||||
DECLARE_OBJ_CHECKERS(RamDiscardManager, RamDiscardManagerClass,
|
||||
|
||||
@@ -419,6 +419,9 @@ struct MachineState {
|
||||
} \
|
||||
type_init(machine_initfn##_register_types)
|
||||
|
||||
extern GlobalProperty hw_compat_8_2[];
|
||||
extern const size_t hw_compat_8_2_len;
|
||||
|
||||
extern GlobalProperty hw_compat_8_1[];
|
||||
extern const size_t hw_compat_8_1_len;
|
||||
|
||||
|
||||
@@ -210,6 +210,9 @@ void pc_madt_cpu_entry(int uid, const CPUArchIdList *apic_ids,
|
||||
/* sgx.c */
|
||||
void pc_machine_init_sgx_epc(PCMachineState *pcms);
|
||||
|
||||
extern GlobalProperty pc_compat_8_2[];
|
||||
extern const size_t pc_compat_8_2_len;
|
||||
|
||||
extern GlobalProperty pc_compat_8_1[];
|
||||
extern const size_t pc_compat_8_1_len;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "hw/misc/xlnx-versal-cfu.h"
|
||||
#include "qemu/fifo32.h"
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFRAME_REG "xlnx,cframe-reg"
|
||||
#define TYPE_XLNX_VERSAL_CFRAME_REG "xlnx-cframe-reg"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFrameReg, XLNX_VERSAL_CFRAME_REG)
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFRAME_BCAST_REG "xlnx.cframe-bcast-reg"
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
#include "hw/misc/xlnx-cfi-if.h"
|
||||
#include "qemu/fifo32.h"
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFU_APB "xlnx,versal-cfu-apb"
|
||||
#define TYPE_XLNX_VERSAL_CFU_APB "xlnx-versal-cfu-apb"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUAPB, XLNX_VERSAL_CFU_APB)
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFU_FDRO "xlnx,versal-cfu-fdro"
|
||||
#define TYPE_XLNX_VERSAL_CFU_FDRO "xlnx-versal-cfu-fdro"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUFDRO, XLNX_VERSAL_CFU_FDRO)
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFU_SFR "xlnx,versal-cfu-sfr"
|
||||
#define TYPE_XLNX_VERSAL_CFU_SFR "xlnx-versal-cfu-sfr"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUSFR, XLNX_VERSAL_CFU_SFR)
|
||||
|
||||
REG32(CFU_ISR, 0x0)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user