Re: [PATCH-for-10.1 1/3] accel/hvf: Display executable bit as 'X'

2025-07-17 Thread BALATON Zoltan
On Thu, 17 Jul 2025, Xiaoyao Li wrote: On 7/17/2025 1:28 AM, Philippe Mathieu-Daudé wrote: Developers are custom to read RWX, not RWE. "accustomed to" Replace E -> X. Reported-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Xiaoyao Li --- accel/hvf/hvf-all.c | 2

Re: [PATCH 11/22] vfio-user/pci.c: update VFIOUserPCIDevice declaration

2025-07-15 Thread BALATON Zoltan
ashed in patch 13. Regards, BALATON Zoltan SocketAddress *socket; bool send_queued; /* all sends are queued */ uint32_t wait_time; /* timeout for message replies */

Re: [PATCH 16/22] vfio/pci.c: use QOM casts where appropriate

2025-07-15 Thread BALATON Zoltan
necessary casts to functions that can be called a lot. Regards, BALATON Zoltan if (!event_notifier_test_and_clear(&vdev->intx.interrupt)) { return; @@ -127,7 +128,7 @@ static void vfio_intx_interrupt(void *opaque) trace_vfio_intx_interrupt(vdev->vbasedev.name, 'A

[PATCH v2 06/13] hw/ppc/pegasos2: Add south bridge pointer in the machine state

2025-07-02 Thread BALATON Zoltan
Add field for the south bridge in machine state to have both north and south bridges in it. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/ppc/pegasos2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index

[PATCH v2 08/13] hw/ppc/pegasos2: Move hardware specific parts out of machine reset

2025-07-02 Thread BALATON Zoltan
Move the chipset reset which is pegasos2 specific out from machine reset to a separate function and move parts not specific to pegasos2 form build_fdt in machine reset so now build_fdt contains pegasos2 specific parts and renamed accordingly. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c

[PATCH v2 10/13] hw/ppc/pegasos2: Add bus frequency to machine state

2025-07-02 Thread BALATON Zoltan
Store the bus frequency in the machine state and set it from instance init method. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index f7999520e4

[PATCH v2 02/13] hw/ppc/pegasos2: Remove explicit name properties from device tree

2025-07-02 Thread BALATON Zoltan
These are not needed any more now that VOF can handle it. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 17 - 1 file changed, 17 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index e15cf96427..73995624e5 100644 --- a/hw/ppc/pegasos2.c +++ b/hw/ppc

[PATCH v2 03/13] hw/ppc/pegasos2: Change device tree generation

2025-07-02 Thread BALATON Zoltan
more generic. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c| 292 +++ pc-bios/dtb/meson.build | 1 + pc-bios/dtb/pegasos2.dtb | Bin 0 -> 1701 bytes pc-bios/dtb/pegasos2.dts | 167 ++ 4 files changed, 220 insertions(+),

[PATCH v2 12/13] hw/ppc/pegasos2: Add Pegasos I emulation

2025-07-02 Thread BALATON Zoltan
-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 170 +- 1 file changed, 124 insertions(+), 46 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index ae3f01231d..a88d93ae04 100644 --- a/hw/ppc/pegasos2.c +++ b/hw/ppc/pegasos2.c @@ -1,5 +1,5

[PATCH v2 11/13] hw/boards: Extend DEFINE_MACHINE macro to cover more use cases

2025-07-02 Thread BALATON Zoltan
Add a more general DEFINE_MACHINE_EXTENDED macro and define simpler versions with less parameters based on that. This is inspired by how the OBJECT_DEFINE macros do this in a similar way to allow using the shortened definition in more complex cases too. Signed-off-by: BALATON Zoltan --- include

[PATCH v2 01/13] ppc/vof: Make nextprop behave more like Open Firmware

2025-07-02 Thread BALATON Zoltan
2 which is how it identifies the machine. Signed-off-by: BALATON Zoltan Reviewed-by: Alexey Kardashevskiy --- hw/ppc/vof.c | 50 +- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c index f14efa3a7c..

[PATCH v2 00/13] Pegasos2 clean up and pegasos1 emulation

2025-07-02 Thread BALATON Zoltan
DEFINE_MACHINE macro that is later used for more easily define the abstract machine type and hide most of the QOM boiler plate. Regards, BALATON Zoltan v2: - rebase on master - added some R-b tags from Philippe - move first patch later (was first to allow merging separately) - clarify blurb above

[PATCH v2 09/13] hw/ppc/pegasos2: Introduce abstract superclass

2025-07-02 Thread BALATON Zoltan
Rename machine state struct to PegasosMachineState as it will be used for pegasos1 too. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 66 --- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c

[PATCH v2 05/13] hw/ppc/pegasos2: Rename mv field in machine state

2025-07-02 Thread BALATON Zoltan
Use more generic name for the field used to store the north bridge in the machine state. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/ppc/pegasos2.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc

[PATCH v2 13/13] hw/ppc/pegasos2: Add VOF support for pegasos1

2025-07-02 Thread BALATON Zoltan
When running without firmware ROM using Virtual Open Firmware we need to do some hardware initialisation and provide the device tree as the machine firmware would normally do. Signed-off-by: BALATON Zoltan --- MAINTAINERS | 1 + hw/ppc/pegasos2.c| 140

[PATCH v2 07/13] hw/ppc/pegasos2: Move PCI IRQ routing setup to a function

2025-07-02 Thread BALATON Zoltan
Collect steps of setting up PCI IRQ routing in one function. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 66 +++ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index 66bceec5ef

[PATCH v2 04/13] hw/ppc/pegasos2: Remove fdt pointer from machine state

2025-07-02 Thread BALATON Zoltan
The machine class has a field for storing the fdt so we don't need our own and can use that instead. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index 646755a3cc..7dc78

[PATCH v2 09/14] hw/pci-host/raven: Do not use parent object for mmcfg region

2025-07-02 Thread BALATON Zoltan
The mmcfg field in PCIHostState is only used by raven for the PCI config direct access but is not actually needed as the memory region lifetime can be managed by the object given during init so use that and remove the unused field from PCIHostState. Signed-off-by: BALATON Zoltan --- hw/pci-host

[PATCH v2 14/14] hw/ppc/prep: Fix non-contiguous IO control bit

2025-07-02 Thread BALATON Zoltan
discontiguous IO addresses. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c| 9 - hw/ppc/prep.c | 3 +++ hw/ppc/prep_systemio.c | 14 -- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index

[PATCH v2 12/14] hw/pci-host/raven: Move bus master address space creation to one place

2025-07-02 Thread BALATON Zoltan
the address space that is used later in a callback. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index bf4f4b7f71..ebf0c511dc 100644 --- a

[PATCH v2 05/14] hw/pci-host/raven: Simplify PCI interrupt routing

2025-07-02 Thread BALATON Zoltan
No need to use an or-irq to map interrupt lines to a single IRQ as the PCI code can handle this internally so simplify by dropping the or-irq. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 39 +++ hw/ppc/prep.c | 5 - 2 files changed, 19

[PATCH v2 06/14] hw/pci-host/raven: Simplify direct config access address decoding

2025-07-02 Thread BALATON Zoltan
Use ctz instead of an open coded version and rename function to better show what it does. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index a400a22df3

[PATCH v2 13/14] hw/pci-host/raven: Do not map regions in init method

2025-07-02 Thread BALATON Zoltan
Export memory regions as sysbus mmio regions and let the board code map them similar to how it is done in grackle. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 37 - hw/ppc/prep.c | 11 +-- 2 files changed, 21 insertions(+), 27

[PATCH v2 10/14] hw/pci-host/raven: Fix PCI config direct access region

2025-07-02 Thread BALATON Zoltan
The PCI configuration direct access region occupies 8 MiB at offset 0x80 in PCI IO space so model that accordingly. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/pci-host/raven.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host

[PATCH v2 03/14] hw/pci-host/raven: Use DEFINE_TYPES macro

2025-07-02 Thread BALATON Zoltan
Convert to using DEFINE_TYPES macro and move raven_pcihost_class_init so methods of each object are grouped together. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/pci-host/raven.c | 57 + 1 file changed, 26 insertions

[PATCH v2 08/14] hw/pci-host/raven: Use correct parameter in direct access ops

2025-07-02 Thread BALATON Zoltan
Instead of passing unneeded enclosing objects to the config direct access ops that only need the bus we can pass that directly thus simplifying the functions. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/pci-host/raven.c | 14 +++--- 1 file changed, 7

[PATCH v2 01/14] hw/pci-host/raven: Simplify PCI facing part

2025-07-02 Thread BALATON Zoltan
The raven PCI device does not need a state struct as it has no data to store there any more, so we can remove that to simplify code. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/hw/pci

[PATCH v2 07/14] hw/pci-host/raven: Rename direct config access ops

2025-07-02 Thread BALATON Zoltan
Rename memory io ops implementing PCI configuration direct access to mmcfg which describes better what these are for. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host

[PATCH v2 00/14] hw/pci-host/raven clean ups

2025-07-02 Thread BALATON Zoltan
bit which was there but did not work as it was not connected but apparently it's not really used by any guest so that wasn't noticed. Regards, BALATON Zoltan v2: - rebase on master - add R-b tags from Philippe BALATON Zoltan (14): hw/pci-host/raven: Simplify PCI facing part hw/pci-

[PATCH v2 04/14] hw/pci-host/raven: Simplify PCI bus creation

2025-07-02 Thread BALATON Zoltan
Instead of doing it manually use pci_register_root_bus() to create and register the PCI bus. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index e0f98afebf

[PATCH v2 11/14] hw/pci-host/raven: Simpify discontiguous IO access

2025-07-02 Thread BALATON Zoltan
enabling/disabling the discontiguous region as needed. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 88 - 1 file changed, 22 insertions(+), 66 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index bb0be40eb4..bf4f4b7f71

[PATCH v2 02/14] hw/pci-host/raven: Simplify host bridge type declaration

2025-07-02 Thread BALATON Zoltan
Use OBJECT_DECLARE_SIMPLE_TYPE macro instead of open coding it. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé --- hw/pci-host/raven.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index 172f01694c

Re: [PATCH v7 0/1] Optimizing the print format of the QEMU monitor 'info mtree'

2025-06-16 Thread BALATON Zoltan
node characters (e.g., +--, |--), is a better approach. As BALATON Zoltan pointed out, retaining space-based indentation for displaying memory region (mr) nodes helps ensure that the output remains easily parseable by other programs. This also provides better compatibility with existing tools and

Re: [PULL 70/72] ppc/amigaone: Add kernel and initrd support

2025-06-16 Thread BALATON Zoltan
On Mon, 16 Jun 2025, Philippe Mathieu-Daudé wrote: On 11/3/25 13:58, Nicholas Piggin wrote: From: BALATON Zoltan Add support for -kernel, -initrd and -append command line options. Signed-off-by: BALATON Zoltan Reviewed-by: Nicholas Piggin Message-ID

Re: [PATCH RESEND v3] meson: fix Windows build

2025-06-12 Thread BALATON Zoltan
depends: precache_all, command: [python, '-c', '']) Should I send a v4 of my patch? I think it would help if you can send a v4 also fixing up the commit message as was discussed so Stefan does not have to do it. Generally more than trivial fixup needs a new version of the patch sent by the author, only fixing simple typos might not need a resend. Ideally maintainers should not need to do any fixup just take the latest patch version. Regards, BALATON Zoltan

Re: [PATCH 4/5] configure: Add dtc option

2025-06-12 Thread BALATON Zoltan
On Thu, 12 Jun 2025, Paolo Bonzini wrote: On 6/11/25 13:45, BALATON Zoltan wrote: On Wed, 11 Jun 2025, Daniel P. Berrangé wrote: On Wed, Jun 11, 2025 at 02:37:08AM +0200, BALATON Zoltan wrote: On Tue, 10 Jun 2025, Bernhard Beschow wrote: The next patch will make dtc mandatory for boards with

Re: [PULL 1/1] meson: fix Windows build

2025-06-11 Thread BALATON Zoltan
On Wed, 11 Jun 2025, Stefan Hajnoczi wrote: On Wed, Jun 11, 2025 at 3:25 PM BALATON Zoltan wrote: On Wed, 11 Jun 2025, Stefan Hajnoczi wrote: From: oltolm Sorry, I forgot to cc the maintainers. Do we want comments like this end up in git log? This could have been fixed before a pull

Re: [PULL 1/1] meson: fix Windows build

2025-06-11 Thread BALATON Zoltan
gards, BALATON Zoltan The build failed when run on Windows. I replaced calls to Unix programs like ´cat´, ´sed´ and ´true´ with calls to ´python´. I wrapped calls to ´os.path.relpath´ in try-except because it can fail when the two paths are on different drives. I made sure to convert the Windows pat

Re: [PATCH 4/5] configure: Add dtc option

2025-06-11 Thread BALATON Zoltan
On Wed, 11 Jun 2025, Daniel P. Berrangé wrote: On Wed, Jun 11, 2025 at 02:37:08AM +0200, BALATON Zoltan wrote: On Tue, 10 Jun 2025, Bernhard Beschow wrote: The next patch will make dtc mandatory for boards with a bundled DTB, causing these boards to be omitted when dtc is missing. Allow

Re: [PATCH 4/5] configure: Add dtc option

2025-06-10 Thread BALATON Zoltan
nown working dtc to compile with. Why isn't that used when we already have it for libfdt? Regards, BALATON Zoltan Signed-off-by: Bernhard Beschow --- meson.build | 12 Kconfig.host | 3 +++ meson_options.txt | 3 +++ pc-bios/d

Re: [PATCH 3/5] scripts/meson-buildoptions: Sort coroutine_backend choices lexicographically

2025-06-10 Thread BALATON Zoltan
On Tue, 10 Jun 2025, Bernhard Beschow wrote: When changing meson_options.txt, this script gets updated automatically by QEMU tooling which sorts the choices lexicographically. Fix this in preparation of the ext patch. Typo: next patch Fixes: ccc403ed5844 ("meson: Add wasm build in build scrip

Re: [PATCH 01/13] hw/boards: Extend DEFINE_MACHINE macro to cover more use cases

2025-06-10 Thread BALATON Zoltan
On Tue, 10 Jun 2025, Philippe Mathieu-Daudé wrote: Hi Zoltan, On 2/5/25 01:20, BALATON Zoltan wrote: Add a more general DEFINE_MACHINE_EXTENDED macro and define simpler versions with less parameters based on that. This is inspired by how the OBJECT_DEFINE macros do this in a similar way to

Re: [PATCH] utils/log: add qemu_log_timestamp() to encapsulate timestamp logging

2025-06-09 Thread BALATON Zoltan
On Mon, 9 Jun 2025, BALATON Zoltan wrote: On Mon, 9 Jun 2025, Tanish Desai wrote: Moved the logic for timestamped logging (~6 lines) from a_nocheck__trace_foo(header) into a new qemu_log_timestamp() function in util/log.c. This avoids code duplication across binaries and enables reuse as a

Re: [PATCH] utils/log: add qemu_log_timestamp() to encapsulate timestamp logging

2025-06-09 Thread BALATON Zoltan
build time or disk space but I could be wrong. Regards, BALATON Zoltan Signed-off-by: Tanish Desai --- include/qemu/log-for-trace.h | 3 +++ scripts/tracetool/backend/log.py | 13 + util/log.c | 18 ++ 3 files changed, 22 insertions(+), 12

Re: [PATCH 2/4] backends/tpmL Avoid using g_alloca()

2025-06-05 Thread BALATON Zoltan
On Thu, 5 Jun 2025, Philippe Mathieu-Daudé wrote: tpm_emulator_ctrlcmd() is not in hot path. Use the heap instead of the stack, removing the g_alloca() call. Typo in subject L -> : Regards, BALATON Zoltan Signed-off-by: Philippe Mathieu-Daudé --- backends/tpm/tpm_emulator.c | 4 ++-- 1 f

Re: [PATCH 15/16] hw/pci-host/raven: Do not map regions in init method

2025-06-03 Thread BALATON Zoltan
On Tue, 3 Jun 2025, Philippe Mathieu-Daudé wrote: On 4/5/25 18:01, BALATON Zoltan wrote: Export memory regions as sysbus mmio regions and let the board code map them. Why? The mapping belong to the host bridge, not the board... I took inspiration from grackle that does it the same way

Re: [PATCH 03/16] hw/pci-host/raven: Simplify PCI facing part

2025-06-03 Thread BALATON Zoltan
On Tue, 3 Jun 2025, Philippe Mathieu-Daudé wrote: Hi Zoltan, On 4/5/25 18:01, BALATON Zoltan wrote: The raven PCI device does not need a state struct as it has no data to store there any more so we can remove that to simplify code. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 30

Re: [PATCH 11/16] hw/pci-host/raven: Do not use parent object for mmcfg region

2025-06-03 Thread BALATON Zoltan
On Tue, 3 Jun 2025, Philippe Mathieu-Daudé wrote: On 4/5/25 18:01, BALATON Zoltan wrote: The mmcfg field in PCIHostState is only used by raven for the PCI config direct access but is not actually needed as the memory region lifetime can be managed by the object given during init so use that and

Re: [PULL 36/58] pc-bios: Move device tree files in their own subdir

2025-06-03 Thread BALATON Zoltan
On Tue, 3 Jun 2025, Bernhard Beschow wrote: Am 2. Juni 2025 08:12:39 UTC schrieb "Philippe Mathieu-Daudé" : On 30/5/25 02:54, BALATON Zoltan wrote: On Thu, 29 May 2025, Bernhard Beschow wrote: Am 25. April 2025 15:28:20 UTC schrieb "Philippe Mathieu-Daudé" : From: BALA

Re: [PATCH 00/13] Pegasos2 clean up and pegasos1 emulation

2025-06-02 Thread BALATON Zoltan
On Fri, 23 May 2025, BALATON Zoltan wrote: On Fri, 2 May 2025, BALATON Zoltan wrote: This series changes how the fdt for VOF is generated in pegasos2 by moving the static parts to a dtb and only generate the changing parts such as memory size and PCI devices programmatically. This simplifies

Re: [PATCH 00/16] hw/pci-host/raven clean ups

2025-06-02 Thread BALATON Zoltan
On Fri, 23 May 2025, BALATON Zoltan wrote: On Sun, 4 May 2025, BALATON Zoltan wrote: Hello, This series cleans up and simplifies the raven model which does some strange stuff that no other pci-host is doing and does it in a convoluted way and also has some legacy bits that can be removed

Re: [PULL 36/58] pc-bios: Move device tree files in their own subdir

2025-06-02 Thread BALATON Zoltan
On Mon, 2 Jun 2025, Philippe Mathieu-Daudé wrote: On 30/5/25 02:54, BALATON Zoltan wrote: On Thu, 29 May 2025, Bernhard Beschow wrote: Am 25. April 2025 15:28:20 UTC schrieb "Philippe Mathieu-Daudé" : From: BALATON Zoltan We have several device tree files already and may have m

Re: [PULL 36/58] pc-bios: Move device tree files in their own subdir

2025-05-29 Thread BALATON Zoltan
On Thu, 29 May 2025, Bernhard Beschow wrote: Am 25. April 2025 15:28:20 UTC schrieb "Philippe Mathieu-Daudé" : From: BALATON Zoltan We have several device tree files already and may have more in the future so add a new dtb subdirectory and move device tree files there so they are

Re: Using parallel port on the Pegasos 2

2025-05-26 Thread BALATON Zoltan
On Mon, 26 May 2025, Bernhard Beschow wrote: Am 25. Mai 2025 00:03:15 UTC schrieb BALATON Zoltan : On Sun, 28 Jul 2024, BALATON Zoltan wrote: On Sun, 28 Jul 2024, quan wrote: I am playing around with the parallel port on the pegasos 2 and I noticed the following issue: The parallel port on

Re: Using parallel port on the Pegasos 2

2025-05-24 Thread BALATON Zoltan
On Sun, 28 Jul 2024, BALATON Zoltan wrote: On Sun, 28 Jul 2024, quan wrote: I am playing around with the parallel port on the pegasos 2 and I noticed the following issue: The parallel port on startup is set to iobase 0x378, then later it gets remapped to iobase 0x3bc. When I tried writing to

Re: [PATCH 3/3] hw/ppc/e500: Use SysBusDevice API to access TYPE_CCSR's internal resources

2025-05-23 Thread BALATON Zoltan
On Fri, 23 May 2025, Bernhard Beschow wrote: From: Bernhard Beschow This was meant to be only here but somehow it alse overwrote the ream From that should have been my address. Sorry for that, but patch is still correct. Regards, BALATON Zoltan Rather than accessing the attributes of

[PATCH 0/3] Misc ppc/e500 patches

2025-05-23 Thread BALATON Zoltan
Some small patches to e500 related parts. Also includes a patch from Bernhard that is rebased on current version. Regards, BALATON Zoltan BALATON Zoltan (2): hw/ppc/e500: Move clock and TB frequency to machine class hw/net/fsl_etsec: Set default MAC address Bernhard Beschow (1): hw/ppc

[PATCH 2/3] hw/net/fsl_etsec: Set default MAC address

2025-05-23 Thread BALATON Zoltan
Use default MAC address if none is specified by property as done by most other network interface models. Signed-off-by: BALATON Zoltan --- hw/net/fsl_etsec/etsec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index d14cb2a101

[PATCH 1/3] hw/ppc/e500: Move clock and TB frequency to machine class

2025-05-23 Thread BALATON Zoltan
Different machines have different frequencies so make this configurable in machine class instead of using a hard coded constant. Signed-off-by: BALATON Zoltan --- hw/ppc/e500.c | 18 +- hw/ppc/e500.h | 4 hw/ppc/e500plat.c | 2 ++ hw/ppc/mpc8544ds.c | 2 ++ 4

Re: [PATCH 00/16] hw/pci-host/raven clean ups

2025-05-22 Thread BALATON Zoltan
On Sun, 4 May 2025, BALATON Zoltan wrote: Hello, This series cleans up and simplifies the raven model which does some strange stuff that no other pci-host is doing and does it in a convoluted way and also has some legacy bits that can be removed. Apart from making the model much more readable

Re: [PATCH 00/13] Pegasos2 clean up and pegasos1 emulation

2025-05-22 Thread BALATON Zoltan
On Fri, 2 May 2025, BALATON Zoltan wrote: This series changes how the fdt for VOF is generated in pegasos2 by moving the static parts to a dtb and only generate the changing parts such as memory size and PCI devices programmatically. This simplifies the code and allows simply adding emulation of

Re: [PATCH] virtio-gpu: support context init multiple timeline

2025-05-18 Thread BALATON Zoltan
me. Maybe rephrase? Regards, BALATON Zoltan After this change, everything related to venus fencing starts making sense. Confirmed this via guest and host side perfetto tracing. Cc: qemu-sta...@nongnu.org Fixes: 94d0ea1c1928 ("virtio-gpu: Support Venus context") Signed-off-by: Yiwei Zhang -

Re: [PATCH 8/9] target/s390x/kvm/pv: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES

2025-05-15 Thread BALATON Zoltan
On Thu, 15 May 2025, Zhao Liu wrote: On Wed, May 14, 2025 at 06:24:03PM +0200, BALATON Zoltan wrote: Date: Wed, 14 May 2025 18:24:03 +0200 From: BALATON Zoltan Subject: Re: [PATCH 8/9] target/s390x/kvm/pv: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES On Wed, 14 May 2025, Zhao Liu

Re: [PATCH] alsaaudio: Set try-poll to false by default

2025-05-15 Thread BALATON Zoltan
On Wed, 7 May 2025, BALATON Zoltan wrote: On Wed, 7 May 2025, Christian Schoenebeck wrote: On Tuesday, May 6, 2025 4:34:42 PM CEST BALATON Zoltan wrote: On Tue, 8 Apr 2025, Volker Rümelin wrote: Am 08.04.25 um 14:55 schrieb Christian Schoenebeck: On Friday, April 4, 2025 1:34:27 PM CEST

Re: [PATCH 8/9] target/s390x/kvm/pv: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES

2025-05-14 Thread BALATON Zoltan
ne under ( but with 4 spaces then you can fit it in two lines but lines over 90 chars are undesirable. Regards, BALATON Zoltan Reviewed-by: David Hildenbrand Thanks! Regards, Zhao

Re: [PATCH 2/9] docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE

2025-05-14 Thread BALATON Zoltan
On Wed, 14 May 2025, Zhao Liu wrote: On Wed, May 14, 2025 at 02:06:14PM +0200, BALATON Zoltan wrote: Date: Wed, 14 May 2025 14:06:14 +0200 From: BALATON Zoltan Subject: Re: [PATCH 2/9] docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE On Wed, 14 May 2025, Zhao Liu wrote

Re: [PATCH 1/9] qom/object: Improve the doc of macros related with simple type

2025-05-14 Thread BALATON Zoltan
On Wed, 14 May 2025, Zhao Liu wrote: Hi BALATON, In case you did not know: https://en.wikipedia.org/wiki/Name_order#Hungary On Wed, May 14, 2025 at 02:02:48PM +0200, BALATON Zoltan wrote: Date: Wed, 14 May 2025 14:02:48 +0200 From: BALATON Zoltan Subject: Re: [PATCH 1/9] qom/object

Re: [PATCH v2 1/3] ui/vnc.c: replace big endian flag with byte order value

2025-05-14 Thread BALATON Zoltan
: BALATON Zoltan

Re: [PATCH 4/9] hw/char/sh_serial: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES

2025-05-14 Thread BALATON Zoltan
E not OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES so change commit message to match the patch. Regards, BALATON Zoltan the type, then there's no need for class definition. Cc: Yoshinori Sato Cc: Magnus Damm Cc: "Marc-André Lureau" Cc: Paolo Bonzini Signed-off-by: Zhao Liu --- hw/char/sh_serial.c | 4 +-

Re: [PATCH 2/9] docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE

2025-05-14 Thread BALATON Zoltan
s to be declared separately. If the type requires virtual functions to be declared in the class struct, then the alternative OBJECT_DECLARE_TYPE() macro can be Maybe you need to adjust the text here about OBJECT_DECLARE_TYPE here and show how to define Class sturct? Regards, BALATON Zoltan

Re: [PATCH 1/9] qom/object: Improve the doc of macros related with simple type

2025-05-14 Thread BALATON Zoltan
choice" is simpler. Regards, BALATON Zoltan */ #define OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES(ModuleObjName, \ module_obj_name, \

Re: [PATCH 6/9] hw/ppc/pef: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES

2025-05-14 Thread BALATON Zoltan
On Wed, 14 May 2025, BALATON Zoltan wrote: On Wed, 14 May 2025, Zhao Liu wrote: The QOM type of PefGuest is declared by OBJECT_DECLARE_SIMPLE_TYPE, which means it doesn't need the class! Therefore, use OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES to implement the type, then there's n

Re: [PATCH 1/9] ui/gtk: Document scale and coordinate handling

2025-05-14 Thread BALATON Zoltan
an I still specify a scale factor to scale it up to usable size? That's a use case I care about which might be unusual but does exist. Regards, BALATON Zoltan Thanks for your suggestion. Sounds like code could be simplified and be much easier to understand in this way. I will investigate it

Re: [PATCH 6/9] hw/ppc/pef: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES

2025-05-14 Thread BALATON Zoltan
hardcoded USER_CREATABLE interface here so if such variant is added it would clash. Better call this something that shows this is PEF specific or just use the appropriate macro from qemu/object.h to define it. Regards, BALATON Zoltan static void pef_guest_class_init(ObjectClass *oc, const void *data) {

Re: [PATCH 8/9] ui/gtk-gl-area: Render guest content with padding in fixed-scale mode

2025-05-13 Thread BALATON Zoltan
On Tue, 13 May 2025, Weifeng Liu wrote: Hi, On Tue, 2025-05-13 at 11:52 +0200, BALATON Zoltan wrote: On Tue, 13 May 2025, Weifeng Liu wrote: Hi, On Tue, 2025-05-13 at 00:37 +, Kim, Dongwon wrote: Hi, Subject: [PATCH 8/9] ui/gtk-gl-area: Render guest content with padding in fixed-scale

Re: [PATCH v3] ppc/vof: Make nextprop behave more like Open Firmware

2025-05-13 Thread BALATON Zoltan
On Tue, 13 May 2025, Alexey Kardashevskiy wrote: On Wed, 30 Apr 2025, at 21:21, BALATON Zoltan wrote: On Wed, 23 Apr 2025, BALATON Zoltan wrote: The FDT does not normally store name properties but reconstructs it from path but Open Firmware specification says each node should at least have

Re: [PATCH 8/9] ui/gtk-gl-area: Render guest content with padding in fixed-scale mode

2025-05-13 Thread BALATON Zoltan
behaviour so it seems some prefer one or the other and just zoom-to-fit can't set both. Regards, BALATON Zoltan

Re: How to mark internal properties

2025-05-13 Thread BALATON Zoltan
ating between QEMU versions or for testing. It might have some uses and maybe that's the reason why people would like these to go through deprecation instead of just dropping them. Marking some properties not exposed would get the same resistance then so may not solve the issue. Regards, BALATON Zoltan

Re: How to mark internal properties

2025-05-12 Thread BALATON Zoltan
eded. A property is just like an accessor function with additional complexity to expose it to other interfaces so it's externally settable and introspectable but we don't need those for internal properties so we can drop that complexity and get back to the accessor function at the bottom of it. Regards, BALATON Zoltan

Re: [PATCH] alsaaudio: Set try-poll to false by default

2025-05-07 Thread BALATON Zoltan
On Wed, 7 May 2025, Christian Schoenebeck wrote: On Tuesday, May 6, 2025 4:34:42 PM CEST BALATON Zoltan wrote: On Tue, 8 Apr 2025, Volker Rümelin wrote: Am 08.04.25 um 14:55 schrieb Christian Schoenebeck: On Friday, April 4, 2025 1:34:27 PM CEST BALATON Zoltan wrote: On Fri, 4 Apr 2025

Re: [PATCH v4 2/4] qdev-properties: Accept bool for OnOffAuto

2025-05-06 Thread BALATON Zoltan
the change you want, isn't it? We have "false by default" properties so it unfortunately does not work. Then make the code make "absent" mean what you need it to mean. Just like the code from ide_dev_initfn() I quoted above. This would change the value for false as

Re: [PATCH] alsaaudio: Set try-poll to false by default

2025-05-06 Thread BALATON Zoltan
On Tue, 8 Apr 2025, Volker Rümelin wrote: Am 08.04.25 um 14:55 schrieb Christian Schoenebeck: On Friday, April 4, 2025 1:34:27 PM CEST BALATON Zoltan wrote: On Fri, 4 Apr 2025, Christian Schoenebeck wrote: On Monday, March 31, 2025 3:05:24 PM CEST BALATON Zoltan wrote: On Sun, 23 Mar 2025

[PATCH 14/16] hw/pci-host/raven: Move bus master address space creation to one place

2025-05-04 Thread BALATON Zoltan
the address space that is used later in a callback. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index 476ae5bc65..68d64e3a97 100644 --- a

[PATCH 07/16] hw/pci-host/raven: Simplify PCI interrupt routing

2025-05-04 Thread BALATON Zoltan
No need to use an or-irq to map interrupt lines to a single IRQ as the PCI code can handle this internally so simplify by dropping the or-irq. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 39 +++ hw/ppc/prep.c | 5 - 2 files changed, 19

[PATCH 05/16] hw/pci-host/raven: Use DEFINE_TYPES macro

2025-05-04 Thread BALATON Zoltan
Convert to using DEFINE_TYPES macro and move raven_pcihost_class_init so methods of each object are grouped together. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 57 + 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/hw/pci

[PATCH 11/16] hw/pci-host/raven: Do not use parent object for mmcfg region

2025-05-04 Thread BALATON Zoltan
The mmcfg field in PCIHostState is only used by raven for the PCI config direct access but is not actually needed as the memory region lifetime can be managed by the object given during init so use that and remove the unused field from PCIHostState. Signed-off-by: BALATON Zoltan --- hw/pci-host

[PATCH 12/16] hw/pci-host/raven: Fix PCI config direct access region

2025-05-04 Thread BALATON Zoltan
The PCI configuration direct access region occupies 8 MiB at offset 0x80 in PCI IO space so model that accordingly. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index

[PATCH 15/16] hw/pci-host/raven: Do not map regions in init method

2025-05-04 Thread BALATON Zoltan
Export memory regions as sysbus mmio regions and let the board code map them. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 37 - hw/ppc/prep.c | 11 +-- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/hw/pci-host

[PATCH 06/16] hw/pci-host/raven: Simplify PCI bus creation

2025-05-04 Thread BALATON Zoltan
Instead of doing it manually use pci_register_root_bus() to create and register the PCI bus. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index e0f98afebf

[PATCH 08/16] hw/pci-host/raven: Simplify direct config access address decoding

2025-05-04 Thread BALATON Zoltan
Use ctz instead of an open coded version and rename function to better show what it does. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index a400a22df3

[PATCH 10/16] hw/pci-host/raven: Use correct parameter in direct access ops

2025-05-04 Thread BALATON Zoltan
Instead of passing unneeded enclosing objects to the config direct access ops that only need the bus we can pass that directly thus simplifying the functions. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hw

[PATCH 09/16] hw/pci-host/raven: Rename direct config access ops

2025-05-04 Thread BALATON Zoltan
Rename memory io ops implementing PCI configuration direct access to mmcfg which describes better what these are for. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host

[PATCH 04/16] hw/pci-host/raven: Simplify host bridge type declaration

2025-05-04 Thread BALATON Zoltan
Use OBJECT_DECLARE_SIMPLE_TYPE macro instead of open coding it. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index 172f01694c..878c915de5 100644 --- a/hw/pci-host/raven.c

[PATCH 00/16] hw/pci-host/raven clean ups

2025-05-04 Thread BALATON Zoltan
bit which was there but did not work as it was not connected but apparently it's not really used by any guest so that wasn't noticed. Regards, BALATON Zoltan BALATON Zoltan (16): hw/pci-host/raven: Remove is-legacy-prep property hw/pci-host/raven: Revert "raven: Move BIOS loa

[PATCH 13/16] hw/pci-host/raven: Simpify discontiguous IO access

2025-05-04 Thread BALATON Zoltan
enabling/disabling the discontiguous region as needed. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 88 - 1 file changed, 22 insertions(+), 66 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index 318400c595..476ae5bc65

[PATCH 16/16] hw/ppc/prep: Fix non-contiguous IO control bit

2025-05-04 Thread BALATON Zoltan
discontinuous IO addresses. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c| 9 - hw/ppc/prep.c | 3 +++ hw/ppc/prep_systemio.c | 14 -- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index

[PATCH 01/16] hw/pci-host/raven: Remove is-legacy-prep property

2025-05-04 Thread BALATON Zoltan
This was a workaround for the prep machine that was removed 5 years ago so this is no longer needed. Fixes: b2ce76a073 (hw/ppc/prep: Remove the deprecated "prep" machine and the OpenHackware BIOS) Signed-off-by: BALATON Zoltan --- hw/pci-host/ra

[PATCH 02/16] hw/pci-host/raven: Revert "raven: Move BIOS loading from board code to PCI host"

2025-05-04 Thread BALATON Zoltan
has nothing to do with ROM so it is not a good place for this. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 55 - hw/ppc/prep.c | 27 -- 2 files changed, 25 insertions(+), 57 deletions(-) diff --git a/hw/pci-host

[PATCH 03/16] hw/pci-host/raven: Simplify PCI facing part

2025-05-04 Thread BALATON Zoltan
The raven PCI device does not need a state struct as it has no data to store there any more so we can remove that to simplify code. Signed-off-by: BALATON Zoltan --- hw/pci-host/raven.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/hw/pci

Re: [PATCH 2/4] target/i386/emulate: stop overloading decode->op[N].ptr

2025-05-03 Thread BALATON Zoltan
ent, - int is_extended, int size); +void * get_reg_ref(CPUX86State *env, int reg, int rex_present, +int is_extended, int size); Stray space after *, checkpatch should have cought it. Regards, BALATON Zoltan

  1   2   3   4   5   6   7   8   9   10   >