Kext files for VirtIO

2023-12-07 Thread aziz tlili
Do u guys have some free time to develop kext files "drivers" for VirtIO devices (like virtio-gpu-pci and virtio-blk-pci and virtio-net-pci) for PowerPC MacOS X Tiger (10.4.11) and later (till Leopard 10.5)? Please, I need them as soon as possible!

Re: [PATCH 1/2] target/riscv: FIX xATP_MODE validation

2023-12-07 Thread LIU Zhiwei
Hi Irina, On 2023/12/1 19:53, Irina Ryapolova wrote: The SATP register is an SXLEN-bit read/write WARL register. It means that CSR fields are only defined for a subset of bit encodings, but allow any value to be written while guaranteeing to return a legal value whenever read (See riscv-privil

Re: [PATCH 1/1] accel/tcg: Fix the comment for CPUTLBEntryFull

2023-12-07 Thread LIU Zhiwei
On 2023/11/28 21:04, Mark Cave-Ayland wrote: On 01/09/2023 07:01, LIU Zhiwei wrote: When memory region is ram, the lower TARGET_PAGE_BITS is not the physical section number. Instead, its value is always 0. Add comment and assert to make it clear. Signed-off-by: LIU Zhiwei ---   accel/tcg/c

[PATCH] fix qemu build with xen-4.18.0

2023-12-07 Thread Michael Young
Builds of qemu-8.2.0rc2 with xen-4.18.0 are currently failing with errors like ../hw/arm/xen_arm.c:74:5: error: ‘GUEST_VIRTIO_MMIO_SPI_LAST’ undeclared (first use in this function) 74 |(GUEST_VIRTIO_MMIO_SPI_LAST - GUEST_VIRTIO_MMIO_SPI_FIRST) | ^~ as ther

[PATCH v4 27/45] Add GENET register access macros

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- include/hw/net/bcm2838_genet.h | 76 ++ 1 file changed, 76 insertions(+) diff --git a/include/hw/net/bcm2838_genet.h b/include/hw/net/bcm2838_genet.h index 94c2f3ebca..e7a76cda81 100644 --- a/include/hw/net/bcm2838_genet.h +++ b/

[PATCH v4 32/45] Enable BCM2838 GENET controller

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 16 hw/arm/raspi4b.c | 17 - include/hw/arm/bcm2838_peripherals.h | 2 ++ 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/hw/arm/bcm2838_peripherals.c b

[PATCH v4 45/45] Add RPi4B to paspi4.rst

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- docs/system/arm/raspi.rst | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/system/arm/raspi.rst b/docs/system/arm/raspi.rst index 922fe375a6..db9e0949ef 100644 --- a/docs/system/arm/raspi.rst +++ b/docs/system/arm/raspi.rst @@

[PATCH v4 25/45] Add GENET register structs. Part 3

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 88 ++ include/hw/net/bcm2838_genet.h | 88 ++ 2 files changed, 176 insertions(+) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 9a99f34c4a..be8

[PATCH v4 16/45] Enable BCM2838 PCIE

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_pcie.c| 3 +++ hw/arm/bcm2838_peripherals.c | 26 ++ hw/arm/meson.build | 7 --- hw/arm/raspi4b.c | 1 - include/hw/arm/bcm2838_peripherals.h | 3 +++ 5

[PATCH v4 04/45] Introduce BCM2838 SoC

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838.c | 100 +++ hw/arm/bcm2838_peripherals.c | 72 +++ hw/arm/meson.build | 2 + include/hw/arm/bcm2838.h | 29 include/hw/arm/bcm2838_peri

[PATCH v4 39/45] Add mailbox tests tags. Part 3

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.h | 78 +++ 1 file changed, 78 insertions(+) diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h index 49668668da..2b140a5d32 100644 --- a/tests/qtest/bcm2838-mailbox.h +++ b/tes

[PATCH v4 43/45] Add missed BCM2835 properties

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/misc/bcm2835_property.c | 47 include/hw/arm/raspberrypi-fw-defs.h | 12 ++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c index ff55a4e2cd..df

[PATCH v4 44/45] Append added properties to mailbox test

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mbox-property-test.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tests/qtest/bcm2838-mbox-property-test.c b/tests/qtest/bcm2838-mbox-property-test.c index 1b4a2ed9cb..3a2e7f9194 100644 --- a/te

[PATCH v4 34/45] Add Rpi4b boot tests

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/avocado/boot_linux_console.py | 92 + 1 file changed, 92 insertions(+) diff --git a/tests/avocado/boot_linux_console.py b/tests/avocado/boot_linux_console.py index 6eab515718..b5c090ae64 100644 --- a/tests/avocado/boot_linux_c

[PATCH v4 30/45] Implement GENET TX path

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 221 - include/hw/net/bcm2838_genet.h | 17 +++ 2 files changed, 237 insertions(+), 1 deletion(-) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 1fae3ecbc2..4c9b39a3ca 100644

[PATCH v4 17/45] Add RNG200 skeleton

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/misc/bcm2838_rng200.c | 152 +++ hw/misc/meson.build | 1 + hw/misc/trace-events | 9 ++ include/hw/misc/bcm2838_rng200.h | 51 +++ 4 files changed, 213 insertions(+) create mode 10064

[PATCH v4 20/45] Implement BCM2838 thermal sensor

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 27 ++-- hw/arm/raspi4b.c | 1 - hw/misc/bcm2838_thermal.c| 98 hw/misc/meson.build | 3 +- include/hw/arm/bcm2838_peripherals.h | 2 + in

[PATCH v4 18/45] Add RNG200 RNG and RBG

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/misc/bcm2838_rng200.c | 292 +-- include/hw/misc/bcm2838_rng200.h | 10 +- 2 files changed, 275 insertions(+), 27 deletions(-) diff --git a/hw/misc/bcm2838_rng200.c b/hw/misc/bcm2838_rng200.c index 8f64e6a20f..f91ea0754c

[PATCH v4 01/45] Split out common part of BCM283X classes

2023-12-07 Thread Sergey Kambalin
Pre setup for BCM2838 introduction Signed-off-by: Sergey Kambalin --- hw/arm/bcm2836.c | 102 ++- hw/arm/raspi.c | 2 +- include/hw/arm/bcm2836.h | 26 +- 3 files changed, 83 insertions(+), 47 deletions(-) diff --git a/hw/arm/bcm2

[PATCH v4 03/45] Split out raspi machine common part

2023-12-07 Thread Sergey Kambalin
Pre-setup for raspberry pi 4 introduction Signed-off-by: Sergey Kambalin --- hw/arm/raspi.c | 112 ++-- include/hw/arm/raspi_platform.h | 21 ++ 2 files changed, 85 insertions(+), 48 deletions(-) diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c inde

[PATCH v4 29/45] Implement GENET MDIO

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 126 - include/hw/net/bcm2838_genet.h | 3 +- 2 files changed, 126 insertions(+), 3 deletions(-) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 56ff6a6f39..1fae3ecbc2 100644

[PATCH v4 31/45] Implement GENET RX path

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 265 - include/hw/net/bcm2838_genet.h | 1 + 2 files changed, 265 insertions(+), 1 deletion(-) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 4c9b39a3ca..61c1981e10 100644 --

[PATCH v4 35/45] Add mailbox test stub

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- include/hw/arm/bcm2838_peripherals.h | 2 + tests/qtest/bcm2838-mailbox.c| 71 tests/qtest/bcm2838-mailbox.h| 46 ++ tests/qtest/meson.build | 1 + 4 files changed, 120 insertions(+) cr

[PATCH v4 09/45] Add GPIO and SD to BCM2838 periph

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 140 +++ include/hw/arm/bcm2838_peripherals.h | 9 ++ 2 files changed, 149 insertions(+) diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c index 06110c724f..c147b6e453 10064

[PATCH v4 41/45] Add mailbox property tests. Part 2

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mbox-property-test.c | 196 ++- 1 file changed, 195 insertions(+), 1 deletion(-) diff --git a/tests/qtest/bcm2838-mbox-property-test.c b/tests/qtest/bcm2838-mbox-property-test.c index 80746dbb95..5322c563a0 100644 --- a/

[PATCH v4 33/45] Connect RNG200, PCIE and GENET to GIC

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838.c | 19 +++ include/hw/arm/bcm2838_peripherals.h | 2 ++ 2 files changed, 21 insertions(+) diff --git a/hw/arm/bcm2838.c b/hw/arm/bcm2838.c index 89cd9d5d8c..83f84b22ad 100644 --- a/hw/arm/bcm2838.c +++ b/hw/a

[PATCH v4 38/45] Add mailbox tests tags. Part 2

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.h | 152 ++ 1 file changed, 152 insertions(+) diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h index 04472fe23d..49668668da 100644 --- a/tests/qtest/bcm2838-mailbox.h +++ b/te

[PATCH v4 40/45] Add mailbox property tests. Part 1

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.c| 34 ++-- tests/qtest/bcm2838-mailbox.h| 18 +- tests/qtest/bcm2838-mbox-property-test.c | 206 +++ tests/qtest/meson.build | 2 +- 4 files changed, 220 insertions(+),

[PATCH v4 10/45] Add BCM2838 checkpoint support

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c index c147b6e453..196fb890a2 100644 --- a/hw/arm/bcm2838_peripherals.c +++ b/hw/arm/bcm2838_peripherals.c

[PATCH v4 28/45] Implement GENET register ops

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 189 +++-- include/hw/net/bcm2838_genet.h | 2 + 2 files changed, 182 insertions(+), 9 deletions(-) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index be899b68f8..56ff6a6f39 100644 -

[PATCH v4 42/45] Add mailbox property tests. Part 3

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mbox-property-test.c | 213 ++- 1 file changed, 212 insertions(+), 1 deletion(-) diff --git a/tests/qtest/bcm2838-mbox-property-test.c b/tests/qtest/bcm2838-mbox-property-test.c index 5322c563a0..1b4a2ed9cb 100644 --- a/

[PATCH v4 36/45] Add mailbox test constants

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.h | 139 ++ 1 file changed, 139 insertions(+) diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h index 1d02ca9c2c..8acc4bd2ff 100644 --- a/tests/qtest/bcm2838-mailbox.h +++ b/te

[PATCH v4 37/45] Add mailbox tests tags. Part 1

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.h | 195 +- 1 file changed, 190 insertions(+), 5 deletions(-) diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h index 8acc4bd2ff..04472fe23d 100644 --- a/tests/qtest/bcm2838-ma

[PATCH v4 26/45] Add GENET register structs. Part 4

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- include/hw/net/bcm2838_genet.h | 37 ++ 1 file changed, 37 insertions(+) diff --git a/include/hw/net/bcm2838_genet.h b/include/hw/net/bcm2838_genet.h index 1bd004785a..94c2f3ebca 100644 --- a/include/hw/net/bcm2838_genet.h +++ b/

[PATCH v4 23/45] Add GENET register structs. Part 1

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 37 include/hw/net/bcm2838_genet.h | 77 +- 2 files changed, 113 insertions(+), 1 deletion(-) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 4420486e00..0d98d1

[PATCH v4 13/45] Add memory region for BCM2837 RPiVid ASB

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 3 +++ include/hw/arm/bcm2838_peripherals.h | 3 ++- include/hw/arm/raspi_platform.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c inde

[PATCH v4 06/45] Add BCM2838 GPIO stub

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838.c | 4 +- hw/gpio/bcm2838_gpio.c | 152 +++ hw/gpio/meson.build | 5 +- include/hw/arm/bcm2838_peripherals.h | 2 - include/hw/gpio/bcm2838_gpio.h | 40 +++

[PATCH v4 02/45] Split out common part of peripherals

2023-12-07 Thread Sergey Kambalin
Pre-setup for BCM2838 introduction Signed-off-by: Sergey Kambalin --- hw/arm/bcm2835_peripherals.c | 198 +++ hw/arm/bcm2836.c | 24 ++-- include/hw/arm/bcm2835_peripherals.h | 29 +++- include/hw/arm/bcm2836.h | 3 +- 4 files c

[PATCH v4 24/45] Add GENET register structs. Part 2

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/net/bcm2838_genet.c | 89 ++ include/hw/net/bcm2838_genet.h | 89 ++ 2 files changed, 178 insertions(+) diff --git a/hw/net/bcm2838_genet.c b/hw/net/bcm2838_genet.c index 0d98d1b30e..9a9

[PATCH v4 22/45] Add GENET stub

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/misc/bcm2838_thermal.c | 2 +- hw/net/bcm2838_genet.c | 99 ++ hw/net/meson.build | 2 + hw/net/trace-events| 16 ++ include/hw/net/bcm2838_genet.h | 40 ++ 5 files changed

[PATCH v4 19/45] Get rid of RNG200 timer

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 14 + hw/arm/raspi4b.c | 1 - hw/misc/bcm2838_rng200.c | 78 include/hw/arm/bcm2838_peripherals.h | 2 + include/hw/misc/bcm2838_rng200.h | 4 +- 5 fil

[PATCH v4 15/45] Add BCM2838 PCIE host

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_pcie.c | 216 +- include/hw/arm/bcm2838_pcie.h | 22 2 files changed, 236 insertions(+), 2 deletions(-) diff --git a/hw/arm/bcm2838_pcie.c b/hw/arm/bcm2838_pcie.c index 3b4373c6a6..75146d6c2e 100644 -

[PATCH v4 08/45] Connect SD controller to BCM2838 GPIO

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/gpio/bcm2838_gpio.c | 59 +++--- include/hw/gpio/bcm2838_gpio.h | 5 +++ 2 files changed, 60 insertions(+), 4 deletions(-) diff --git a/hw/gpio/bcm2838_gpio.c b/hw/gpio/bcm2838_gpio.c index 51eb55b00a..f166ce7959 100644 -

[PATCH v4 07/45] Implement BCM2838 GPIO functionality

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/gpio/bcm2838_gpio.c | 192 - 1 file changed, 189 insertions(+), 3 deletions(-) diff --git a/hw/gpio/bcm2838_gpio.c b/hw/gpio/bcm2838_gpio.c index 15b66cb559..51eb55b00a 100644 --- a/hw/gpio/bcm2838_gpio.c +++ b/hw/gpio

[PATCH v4 12/45] Temporarily disable unimplemented rpi4b devices

2023-12-07 Thread Sergey Kambalin
This commit adds RPi4B device tree modifications: - disable pcie, rng200, thermal sensor and genet devices (they're going to be re-enabled in the following commits) - create additional memory region in device tree if RAM amount exceeds VC base address. Signed-off-by: Sergey Kambalin --- hw/a

[PATCH v4 05/45] Add GIC-400 to BCM2838 SoC

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838.c | 167 +++ hw/arm/trace-events | 2 + include/hw/arm/bcm2838.h | 2 + include/hw/arm/bcm2838_peripherals.h | 39 +++ 4 files changed, 210 insertions(+) diff --git

[PATCH v4 00/45] Raspberry Pi 4B machine

2023-12-07 Thread Sergey Kambalin
Introducing Raspberry Pi 4B model. It contains new BCM2838 SoC, PCIE subsystem, RNG200, Thermal sensor and Genet network controller. It can work with recent linux kernels 6.x.x. Two avocado tests was added to check that. Unit tests has been made as read/write operations via mailbox properties. G

[PATCH v4 14/45] Add BCM2838 PCIE Root Complex

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_pcie.c | 74 +++ hw/arm/meson.build| 5 ++- hw/arm/trace-events | 4 ++ include/hw/arm/bcm2838_pcie.h | 53 + 4 files changed, 135 insertions(+), 1 deletion(-)

[PATCH v4 21/45] Add clock_isp stub

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 6 ++ include/hw/arm/bcm2838_peripherals.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c index e9c6d47ba6..65a659c15c 100644 --- a/hw/arm/bcm2838_perip

[PATCH v4 11/45] Introduce Raspberry PI 4 machine

2023-12-07 Thread Sergey Kambalin
Signed-off-by: Sergey Kambalin --- hw/arm/bcm2835_peripherals.c| 20 +++-- hw/arm/bcm2836.c| 2 + hw/arm/bcm2838.c| 2 + hw/arm/meson.build | 2 +- hw/arm/raspi.c | 28 - hw/arm/raspi4b.c| 72

Re: [PATCH v6] crypto: Introduce SM4 symmetric cipher algorithm

2023-12-07 Thread Yong Huang
I'll post the changelog between versions in the next version if needed. :) v6: - modify the comment about how to enable sm4 crypto feature v5: - drop the crypto-sm4 option in build system v4 - refactor the error report info, change "sm4"->"libsm4" On Fri, Dec 8, 2023 at 12:02 AM Philippe Mathieu-

[PATCH for 8.2] accel/tcg/cputlb: Fix iotlb page alignment check

2023-12-07 Thread LIU Zhiwei
For ram memory region the iotlb(which will be filled into the xlat_section of CPUTLBEntryFull) is calculated as: iotlb = memory_region_get_ram_addr(section->mr) + xlat; 1) xlat here is the offset_within_region of a MemoryRegionSection, which maybe not TARGET_PAGE_BITS aligned. 2) The ram_addr_t r

Re: make: *** No rule to make target 'i386/fp87.c', needed by 'i386/fp87.o'. Stop.

2023-12-07 Thread Liu Jaloo
Thanks, I'll check it out. it does be a very old version, almost the first version of QEMU $ git checkout initial -b initial I will try it on my own, thanks a lot. On Thu, Dec 7, 2023 at 7:32 PM Peter Maydell wrote: > On Thu, 7 Dec 2023 at 11:20, Liu Jaloo wrote: > > > > qemu checkout tag "in

[PATCH v3 4/4] accel/tcg: Move perf and debuginfo support to tcg

2023-12-07 Thread Ilya Leoshkevich
tcg/ should not depend on accel/tcg/, but perf and debuginfo support provided by the latter are being used by tcg/tcg.c. Since that's the only user, move both to tcg/. Suggested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Ilya Leoshkevich --- accel/tcg/meson.

[PATCH v3 0/4] accel/tcg: Move perf and debuginfo support to tcg

2023-12-07 Thread Ilya Leoshkevich
v2: https://patchew.org/QEMU/20230630234230.596193-1-...@linux.ibm.com/ v2 -> v3: Rebased. This series was lost and forgotten until Philippe reminded me about it. v1: https://lists.gnu.org/archive/html/qemu-devel/2023-06/msg07037.html v1 -> v2: Move qemu_target_page_mask() hunk

[PATCH v3 2/4] tcg: Make tb_cflags() usable from target-agnostic code

2023-12-07 Thread Ilya Leoshkevich
Currently tb_cflags() is defined in exec-all.h, which is not usable from target-agnostic code. Move it to translation-block.h, which is. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Ilya Leoshkevich --- include/exec/exec-all.h | 6 -- include/exec/translation-block.h | 6

[PATCH v3 1/4] target: Make qemu_target_page_mask() available for *-user

2023-12-07 Thread Ilya Leoshkevich
Currently qemu_target_page_mask() is usable only from the softmmu code. Make it possible to use it from the *-user code as well. Make use of it in perf.c. Signed-off-by: Ilya Leoshkevich --- accel/tcg/perf.c | 3 ++- system/physmem.c | 5 - target/meson.build | 2 ++ targ

[PATCH v3 3/4] accel/tcg: Remove #ifdef TARGET_I386 from perf.c

2023-12-07 Thread Ilya Leoshkevich
Preparation for moving perf.c to tcg/. This affects only profiling guest code, which has code in a non-0 based segment, e.g., 16-bit code, which is not particularly important. Suggested-by: Richard Henderson Signed-off-by: Ilya Leoshkevich --- accel/tcg/perf.c | 4 1 file changed, 4 delet

Re: [PATCH v2 4/5] system/vl: Restrict icount to TCG emulation

2023-12-07 Thread Richard Henderson
On 12/7/23 07:45, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- stubs/icount.c | 6 -- system/vl.c| 6 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/stubs/icount.c b/stubs/icount.c index a5202e2dd9..b060b03a73 100644 --- a/stubs/icoun

Re: [PATCH v2 3/5] util/async: Only call icount_notify_exit() if icount is enabled

2023-12-07 Thread Richard Henderson
On 12/7/23 07:45, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- stubs/icount.c | 2 +- util/async.c | 16 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/stubs/icount.c b/stubs/icount.c index f8e6a014b8..a5202e2dd9 100644 --- a/st

Re: [PATCH v2 2/5] target/arm: Ensure icount is enabled when emulating INST_RETIRED

2023-12-07 Thread Richard Henderson
On 12/7/23 07:45, Philippe Mathieu-Daudé wrote: pmu_init() register its event checking the pm_event::supported() handler. For INST_RETIRED, the event is only registered and the bit enabled in the PMU Common Event Identification register when icount is enabled as ICOUNT_PRECISE. Assert the pm_eve

Re: [PATCH v2 1/5] sysemu/cpu-timers: Introduce ICountMode enumerator

2023-12-07 Thread Richard Henderson
On 12/7/23 07:45, Philippe Mathieu-Daudé wrote: Rather than having to lookup for what the 0, 1, 2, ... icount values are, use a enum definition. Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/cpu-timers.h | 20 +--- accel/tcg/icount-common.c | 16 +++-

[PATCH qemu v2 1/2] hw/arm: Add minimal support for the STM32L4x5 SoC

2023-12-07 Thread ~inesvarhol
From: Inès Varhol This patch adds a new STM32L4x5 SoC, it is necessary to add support for the B-L475E-IOT01A board. The implementation is derived from the STM32F405 SoC. The implementation contains no peripherals, only memory regions are implemented. Reviewed-by: Philippe Mathieu-Daudé Signed-

[PATCH qemu v2 2/2] hw/arm: Add minimal support for the B-L475E-IOT01A board

2023-12-07 Thread ~inesvarhol
From: Inès Varhol This commit adds a new B-L475E-IOT01A board using the STM32L475VG SoC. The implementation is derived from the Netduino Plus 2 machine. There are no peripherals implemented yet, only memory regions. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Arnaud Minier Signed-off-b

[PATCH qemu v2 0/2] hw/arm: Add minimal support for the B-L475E-IOT01A board

2023-12-07 Thread ~inesvarhol
This patch adds a new STM32L4x5 SoC, it is necessary to add support for the B-L475E-IOT01A board. The implementation is derived from the STM32F405 SoC and NetduinoPlus2 board. The implementation contains no peripherals, only memory regions are implemented. Changes from v1 to v2: Thank you Alistair

[PATCH qemu 2/3] hw/arm: Add STM32L4x5 EXTI QTest testcase

2023-12-07 Thread ~inesvarhol
From: Inès Varhol Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 485 ++ 2 files changed, 490 insertions(+) create mode 100644 tests/qtest/stm32l4x5_exti-test.c diff --git

[PATCH qemu 1/3] hw/arm: Implement STM32L4x5 EXTI

2023-12-07 Thread ~inesvarhol
From: Inès Varhol Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/misc/Kconf

[PATCH qemu 0/3] hw/arm: Add device STM32L4x5 EXTI

2023-12-07 Thread ~inesvarhol
This patch adds a new STM32L4x5 EXTI device and is part of a series implementing the STM32L4x5 with a few peripherals. The patch is split up in 3 commits : - implementing the EXTI device - adding tests (that fail in this commit) - connecting the EXTI device to the SoC (the tests pass in this commi

[PATCH qemu 3/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2023-12-07 Thread ~inesvarhol
From: Inès Varhol Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 65 -- include/hw/arm/stm32l4x5_soc.h | 3 ++ 3 files changed, 67 insertions(+), 2 deletions(-) diff --git a/h

[PATCH v4 06/17] mcdstub: -mcd start option added, mcd specific defines added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 201 +++ debug/mcdstub/meson.build| 12 ++ debug/meson.build| 1 + include/mcdstub/mcdstub.h| 152 +++ include/mcdstub/mcdstub_common.h | 46 +++ qemu-options.hx

[PATCH v4 16/17] mcdstub: register access added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 28 +++ debug/mcdstub/mcdstub.c | 369 ++ include/mcdstub/arm_mcdstub.h | 15 ++ 3 files changed, 412 insertions(+) diff --git a/debug/mcdstub/arm_mcdstub.c b/debug/mcdstub/arm_mcdstub.c index f14e677480..6d46e1bd7a 10064

[PATCH v4 00/17] first version of mcdstub

2023-12-07 Thread Nicolas Eder
SUMMARY === This patch-set introduces the first version of the mcdstub. The mcdstub is a debug interface, which enables debugging QEMU using the MCD (Multi-Core Debug) API. The mcdstub uses TCP to communicate with the host debug software. However, because MCD is merely an API, the TCP communic

[PATCH v4 05/17] mcdstub: memory helper functions added

2023-12-07 Thread Nicolas Eder
--- include/exec/cpu-common.h | 3 +++ include/exec/memory.h | 9 + system/memory.c | 11 +++ system/physmem.c | 26 ++ 4 files changed, 49 insertions(+) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 41115

[PATCH v4 11/17] mcdstub: system and core queries added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 243 debug/mcdstub/mcdstub.c | 373 ++- debug/mcdstub/meson.build| 2 +- include/mcdstub/arm_mcdstub.h| 85 +++ include/mcdstub/mcdstub.h| 5 - include/mcdstub/mcdstub_comm

[PATCH v4 03/17] gdbstub: GDBRegisterState moved to gdbstub.h so it can be used outside of the gdbstub

2023-12-07 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 8 include/exec/gdbstub.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index f43d4355c0..5df7841878 100644 --- a/debug/gdbstub/gdbstub.c +++ b/debug/gdbstub/gdbstub.c @@ -45,14

[PATCH v4 01/17] gdbstub, mcdstub: file and build structure adapted to accomodate for the mcdstub

2023-12-07 Thread Nicolas Eder
mcdstub files created including the shared header between the mcd shared library and the mcdstub. MAINTAINERS file updated --- MAINTAINERS | 11 +- debug/common/debug.c | 18 debug/common/meson.build | 0 {gdbstub => debug/

[PATCH v4 13/17] mcdstub: go, step and break added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 220 1 file changed, 220 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index a5256eeb56..83582f7fa5 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -28,6 +28,7 @@ #include

[PATCH v4 04/17] gdbstub: DebugClass added to system mode.

2023-12-07 Thread Nicolas Eder
This class is used to abstract debug features between different debuggers --- debug/common/debug.c | 33 + debug/common/meson.build | 1 + debug/gdbstub/system.c | 18 ++ debug/meson.build| 1 + include/hw/boards.h | 1 + includ

[PATCH v4 17/17] mcdstub: break/watchpoints added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 154 1 file changed, 154 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index e5fd575834..dadd79034b 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1177,6 +1177,134 @@ stat

[PATCH v4 15/17] mcdstub: skeleton for reset handling added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 46 + 1 file changed, 46 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 794e7d1312..cc1587396d 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -826,6 +826,37 @@ static v

[PATCH v4 02/17] gdbstub: hex conversion functions moved to cutils.h

2023-12-07 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 19 ++- debug/gdbstub/internals.h | 26 -- include/qemu/cutils.h | 30 ++ 3 files changed, 40 insertions(+), 35 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index

[PATCH v4 10/17] mcdstub: open and close server funcitons added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 300 1 file changed, 215 insertions(+), 85 deletions(-) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index f97bccf409..d59c4ac078 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -65,6 +6

[PATCH v4 08/17] cutils: qemu_strtou32 function added

2023-12-07 Thread Nicolas Eder
--- include/qemu/cutils.h | 2 ++ util/cutils.c | 30 ++ 2 files changed, 32 insertions(+) diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index 5ab1a4ffb0..14f492ba61 100644 --- a/include/qemu/cutils.h +++ b/include/qemu/cutils.h @@ -158,6 +158,8 @

[PATCH v4 07/17] mcdstub: mcdserver initialization functions added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 154 1 file changed, 154 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 32f4d1980f..176d5d2311 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -22,9 +22,12 @@ #include

[PATCH v4 12/17] mcdstub: all core specific queries added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 365 1 file changed, 365 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 48da2e043c..a5256eeb56 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -897,6 +897,301 @@ static

[PATCH v4 14/17] mcdstub: state query added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 44 + 1 file changed, 44 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 83582f7fa5..794e7d1312 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1412,6 +1412,43 @@ static

[PATCH v4 09/17] mcdstub: TCP packet plumbing added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 422 1 file changed, 422 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 176d5d2311..f97bccf409 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -87,6 +87,320 @@ static i

Re: [PATCH for 8.2] docs: clean-up the xenpvh documentation

2023-12-07 Thread Alex Bennée
Stefan Hajnoczi writes: > On Thu, 7 Dec 2023 at 08:07, Alex Bennée wrote: >> >> I noticed the code blocks where not rendering properly so thought I'd >> better fix things up. So: >> >> - Use better title for the machine type >> - Explain why Xen is a little different >> - Add a proper anch

Re: [PATCH for 8.2] docs: clean-up the xenpvh documentation

2023-12-07 Thread Stefan Hajnoczi
On Thu, 7 Dec 2023 at 08:07, Alex Bennée wrote: > > I noticed the code blocks where not rendering properly so thought I'd > better fix things up. So: > > - Use better title for the machine type > - Explain why Xen is a little different > - Add a proper anchor to the tpm-device link > - add

Re: Request for New PPC Machine Supporting Multiple SMP Cores

2023-12-07 Thread BALATON Zoltan
On Thu, 7 Dec 2023, Peter Maydell wrote: On Thu, 7 Dec 2023 at 17:40, BALATON Zoltan wrote: On Thu, 7 Dec 2023, aziz tlili wrote: Dear QEMU Team, I hope this message finds you well. I've been a user of QEMU for well over a year. I wanted to share an idea for a potential enhancement that I b

[PATCH 31/40] vdpa: batch map and unmap around cvq svq start/stop

2023-12-07 Thread Si-Wei Liu
Coalesce map or unmap operations to exact one DMA batch to reduce potential impact on performance. Signed-off-by: Si-Wei Liu --- net/vhost-vdpa.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index bc72345..1c1d61f 100644 --- a/net

[PATCH 28/40] vdpa: support iotlb_batch_asid

2023-12-07 Thread Si-Wei Liu
Then it's possible to specify ASID when calling the DMA batching API. If the ASID to work on doesn't align with the ASID for ongoing transaction, the API will fail the request and return negative, and the transaction will remain intact as if no failed request ever had occured. Signed-off-by: Si-We

[PATCH 40/40] vdpa: add trace event for vhost_vdpa_net_load_mq

2023-12-07 Thread Si-Wei Liu
For better debuggability and observability. Signed-off-by: Si-Wei Liu --- net/trace-events | 1 + net/vhost-vdpa.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/net/trace-events b/net/trace-events index be087e6..c128cc4 100644 --- a/net/trace-events +++ b/net/trace-events @@ -30,3 +30,4

[PATCH 07/40] vdpa: move around vhost_vdpa_set_address_space_id

2023-12-07 Thread Si-Wei Liu
Move it a few lines ahead to make function call easier for those before it. No funtional change involved. Signed-off-by: Si-Wei Liu --- net/vhost-vdpa.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c

[PATCH 22/40] vdpa: factor out vhost_vdpa_map_batch_begin

2023-12-07 Thread Si-Wei Liu
Refactoring only. No functional change. Signed-off-by: Si-Wei Liu --- hw/virtio/trace-events | 2 +- hw/virtio/vhost-vdpa.c | 25 - 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events index 9725d44..b0239b8 100

[PATCH 12/40] vdpa: check map_thread_enabled before join maps thread

2023-12-07 Thread Si-Wei Liu
The next patches will also register memory listener on demand, hence the need to differentiate the map_thread case from the rest. Signed-off-by: Si-Wei Liu --- hw/virtio/vhost-vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa

[PATCH 06/40] vhost: make svq work with gpa without iova translation

2023-12-07 Thread Si-Wei Liu
Make vhost_svq_vring_write_descs able to work with GPA directly without going through iova tree for translation. This will be needed in the next few patches where the SVQ has dedicated address space to host its virtqueues. Instead of having to translate qemu's VA to IOVA via the iova tree, with ded

[PATCH 04/40] vdpa: piggyback desc_group index when probing isolated cvq

2023-12-07 Thread Si-Wei Liu
Same as the previous commit, but do it for cvq instead of data vqs. Signed-off-by: Si-Wei Liu --- net/vhost-vdpa.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 0cf3147..cb5705d 100644 --- a/net/vhost-vdpa.c +

[PATCH 25/40] vdpa: add asid to dma_batch_once API

2023-12-07 Thread Si-Wei Liu
So that DMA batching API can operate on other ASID than 0. Signed-off-by: Si-Wei Liu --- hw/virtio/trace-events | 4 ++-- hw/virtio/vhost-vdpa.c | 14 -- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events index 3411a07..19

[PATCH 35/40] vdpa: add vhost_vdpa_set_address_space_id trace

2023-12-07 Thread Si-Wei Liu
For better debuggability and observability. Signed-off-by: Si-Wei Liu --- net/trace-events | 3 +++ net/vhost-vdpa.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/net/trace-events b/net/trace-events index 823a071..aab666a 100644 --- a/net/trace-events +++ b/net/trace-events @@ -23,3 +2

  1   2   >