Sebastian Huber
9b113a09ff
hw/arm/xilinx_zynq: Fix IRQ/FIQ routing
...
Fix the system bus interrupt line to CPU core assignment.
Fixes: ddcf58e044
("hw/arm/xilinx_zynq: Support up to two CPU cores")
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-id: 20240610052906.4432-1-sebastian.huber@embedded-brains.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2024-06-21 14:01:58 +01:00
Edgar E. Iglesias
7175a562f1
hw/intc/arm_gic: Fix deactivation of SPI lines
...
Julien reported that he has seen strange behaviour when running
Xen on QEMU using GICv2. When Xen migrates a guest's vCPU from
one pCPU to another while the vCPU is handling an interrupt, the
guest is unable to properly deactivate interrupts.
Looking at it a little closer, our GICv2 model treats
deactivation of SPI lines as if they were PPI's, i.e banked per
CPU core. The state for active interrupts should only be banked
for PPI lines, not for SPI lines.
Make deactivation of SPI lines unbanked, similar to how we
handle writes to GICD_ICACTIVER.
Reported-by: Julien Grall <julien@xen.org >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com >
Message-id: 20240605143044.2029444-2-edgar.iglesias@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2024-06-21 14:01:58 +01:00
Marcin Juszkiewicz
7edca16e74
hw/arm/sbsa-ref: switch to 1GHz timer frequency
...
Updated firmware for QEMU CI is already in merge queue so we can move
platform to be future proof.
All supported cpus work fine with 1GHz timer frequency when firmware is
fresh enough.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org >
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com >
Message-id: 20240531093729.220758-2-marcin.juszkiewicz@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2024-06-21 14:01:58 +01:00
Shiva sagar Myana
35e71ec535
hw/net/can/xlnx-versal-canfd: Fix sorting of the tx queue
...
Returning an uint32_t casted to a gint from g_cmp_ids causes the tx queue to
become wrongly sorted when executing g_slist_sort. Fix this by always
returning -1 or 1 from g_cmp_ids based on the ID comparison instead.
Also, if two message IDs are the same, sort them by using their index and
transmit the message at the lowest index first.
Signed-off-by: Shiva sagar Myana <Shivasagar.Myana@amd.com >
Reviewed-by: Francisco Iglesias <francisco.iglesias@amd.com >
Message-id: 20240603051732.3334571-1-Shivasagar.Myana@amd.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2024-06-21 14:01:58 +01:00
Gerd Hoffmann
abd749b517
ui+display: rename is_buffer_shared() -> surface_is_allocated()
...
Boolean return value is reversed, to align with QEMU_ALLOCATED_FLAG, so
all callers must be adapted. Also rename share_surface variable in
vga_draw_graphic() to reduce confusion.
No functional change.
Suggested-by: Marc-André Lureau <marcandre.lureau@gmail.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Paul Durrant <paul@xen.org >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-ID: <20240605131444.797896-4-kraxel@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Gerd Hoffmann
b1cf266c82
stdvga: fix screen blanking
...
In case the display surface uses a shared buffer (i.e. uses vga vram
directly instead of a shadow) go unshare the buffer before clearing it.
This avoids vga memory corruption, which in turn fixes unblanking not
working properly with X11.
Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2067
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-ID: <20240605131444.797896-2-kraxel@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Philippe Mathieu-Daudé
b926895357
hw/s390x: Introduce s390_skeys_get|set() helpers
...
s390_skeys_set() dispatch to S390SKeysClass::set_skeys(),
and s390_skeys_get() to S390SKeysClass::get_skeys().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Message-Id: <20240613104415.9643-2-philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Jiaxun Yang
c3425158d6
hw/mips/loongson3_virt: Wire up loongson_ipi device
...
Wire up loongson_ipi device for loongson3_virt machine, so we
can have SMP support for TCG backend as well.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Acked-by: Song Gao <gaosong@loongson.cn >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-ID: <20240605-loongson3-ipi-v3-3-ddd2c0e03fa3@flygoat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Jiaxun Yang
03ca348b6b
hw/intc/loongson_ipi: Replace ipi_getcpu with cpu_by_arch_id
...
cpu_by_arch_id is doing the same thing as our ipi_getcpu logic.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Reviewed-by: Song Gao <gaosong@loongson.cn >
Message-ID: <20240605-loongson3-ipi-v3-4-ddd2c0e03fa3@flygoat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Jiaxun Yang
49eba52a52
hw/intc/loongson_ipi: Provide per core MMIO address spaces
...
The real IPI hardware have dedicated MMIO registers mapped into
memory address space for every core. This is not used by LoongArch
guest software but it is essential for CPU without IOCSR such as
Loongson-3A1000.
Implement it with existing infrastructure.
Acked-by: Song Gao <gaosong@loongson.cn >
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Message-ID: <20240605-loongson3-ipi-v3-2-ddd2c0e03fa3@flygoat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Jiaxun Yang
5f82fb2a3a
hw/intc: Remove loongarch_ipi.c
...
It was missed out in previous commit.
Fixes: b4a12dfc21
("hw/intc/loongarch_ipi: Rename as loongson_ipi")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Reviewed-by: Song Gao <gaosong@loongson.cn >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-ID: <20240605-loongson3-ipi-v3-1-ddd2c0e03fa3@flygoat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Fabio D'Urso
283720489f
hw/usb/dev-mtp: Correctly report free space
...
In order to compute the amount of free space (in bytes), the number
of available blocks (f_bavail) should be multiplied by the block
size (f_frsize) instead of the total number of blocks (f_blocks).
Signed-off-by: Fabio D'Urso <fdurso@google.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-ID: <20240618003657.3344685-1-fdurso@google.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Philippe Mathieu-Daudé
ce5311c476
hw/usb: Remove unused 'host.h' header
...
Since commit 99761176ee
("usb: Remove legacy -usbdevice options
(host, serial, disk and net)") hw/usb/host.h is not used, remove
it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Message-Id: <20240611102305.60735-2-philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Philippe Mathieu-Daudé
fc9ad5cf9c
hw/i386/iommu: Constify IOMMUTLBEvent in vtd_page_walk_hook prototype
...
@event access is read-only.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Peter Xu <peterx@redhat.com >
Message-Id: <20240612132532.85928-4-philmd@linaro.org >
2024-06-19 12:42:03 +02:00
Cédric Le Goater
80ce0d5874
ppc/pnv: Introduce pnv_chip_foreach_cpu()
...
This helper routine uses the machine definition, sockets, cores and
threads, to loop on all CPUs of the machine. Replace CPU_FOREACH()
with it.
Signed-off-by: Cédric Le Goater <clg@redhat.com >
Reviewed-by: Nicholas Piggin <npiggin@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-ID: <20240424093048.180966-1-clg@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
795eaa62fa
hw/intc: Introduce x-query-interrupt-controllers QMP command
...
This is a counterpart to the HMP "info pic" command. It is being
added with an "x-" prefix because this QMP command is intended as an
adhoc debugging tool and will thus not be modelled in QAPI as fully
structured data, nor will it have long term guaranteed stability.
The existing HMP command is rewritten to call the QMP command.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Message-Id: <20240610063518.50680-3-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
b2580720d0
hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info()
...
Replace Monitor API by HumanReadableText one (see commit f2de406f29
"docs/devel: document expectations for QAPI data modelling for QMP"
for rationale).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Message-Id: <20240610063518.50680-2-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
a58e653aa2
hw/ppc: Avoid using Monitor in pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-27-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
d312b62a2e
hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-26-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
f50bb2a26a
hw/ppc: Avoid using Monitor in spapr_irq_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-25-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
4abeadf651
hw/ppc: Avoid using Monitor in SpaprInterruptControllerClass::print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-24-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
70fb275d07
hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-23-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
e6024fd832
hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-22-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
33e3642684
hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-21-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
fd32d82339
hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-20-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
9d5c1da9c0
hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-19-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
0018666462
hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-18-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
d88f39dba4
hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-17-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
0527563a47
hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-16-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
1a40b0ca9e
hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-15-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
3d1e062c80
hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-14-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
f1bca2ca84
hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-13-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
bc8c553b89
hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-12-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
dbcbb8c00f
hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-11-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
b71a3f67bc
hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-10-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
4d62448c1c
hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-9-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
950f1273ab
hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-8-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
ace6fcde9b
hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-7-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
ae08259b84
hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-6-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
dd77c49e74
hw/ppc: Avoid using Monitor in ics_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-5-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
f163e2707e
hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-4-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
5242494c05
hw/ppc: Avoid using Monitor in icp_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-3-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
dafec001d6
hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
...
Replace Monitor API by HumanReadableText one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org >
Reviewed-by: Cédric Le Goater <clg@kaod.org >
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com >
Message-Id: <20240610062105.49848-2-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
a276ec8e26
hw/audio/virtio-snd: Always use little endian audio format
...
The VIRTIO Sound Device conforms with the Virtio spec v1.2,
thus only use little endianness.
Remove the suspicious target_words_bigendian() noticed during
code review.
Cc: qemu-stable@nongnu.org
Fixes: eb9ad377bb
("virtio-sound: handle control messages and streams")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-Id: <20240422211830.25606-1-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
e6115657a4
hw/i386/pc: Replace PCMachineClass::acpi_data_size by PC_ACPI_DATA_SIZE
...
PCMachineClass::acpi_data_size was only used by the pc-i440fx-2.0
machine, which got removed. Since it is constant, replace the class
field by a definition (local to hw/i386/pc.c, since not used
elsewhere).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-24-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
fff35c5da5
hw/i386/pc: Simplify DEFINE_I440FX_MACHINE() macro
...
Last commit removed the last non-NULL use of DEFINE_I440FX_MACHINE
3rd parameter. 'compatfn' is now obsolete, remove it.
Suggested-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-22-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
46a2bd5257
hw/i386/pc: Remove deprecated pc-i440fx-2.3 machine
...
The pc-i440fx-2.3 machine was deprecated for the 8.2
release (see commit c7437f0ddb
"docs/about: Mark the
old pc-i440fx-2.0 - 2.3 machine types as deprecated"),
time to remove it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-21-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
e00cb9a7c2
hw/i386/acpi: Remove AcpiBuildState::rsdp field
...
AcpiBuildState::rsdp is always NULL, remove it,
simplifying acpi_build_update().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-20-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
af8348f658
hw/i386/pc: Remove PCMachineClass::rsdp_in_ram
...
PCMachineClass::rsdp_in_ram was only used by the
pc-i440fx-2.2 machine, which got removed. It is
now always true. Remove it, simplifying acpi_setup().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-19-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Philippe Mathieu-Daudé
91616f812a
hw/i386/pc: Remove PCMachineClass::resizable_acpi_blob
...
PCMachineClass::resizable_acpi_blob was only used by the
pc-i440fx-2.2 machine, which got removed. It is now always
true. Remove it, simplifying acpi_build().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Zhao Liu <zhao1.liu@intel.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-Id: <20240617071118.60464-18-philmd@linaro.org >
2024-06-19 12:40:49 +02:00