Re: qemu direct kernel boot on LoongArch

2024-09-05 Thread Thomas Weißschuh
On 2024-09-05 17:18:07+, Jason A. Donenfeld wrote: > On Thu, Sep 5, 2024 at 5:16 PM Thomas Weißschuh wrote: > > > > On 2024-09-05 17:07:22+, Jason A. Donenfeld wrote: > > > On Thu, Sep 5, 2024 at 5:05 PM Thomas Weißschuh wrote: > > > > > >

Re: qemu direct kernel boot on LoongArch

2024-09-05 Thread Thomas Weißschuh
On 2024-09-05 17:07:22+, Jason A. Donenfeld wrote: > On Thu, Sep 5, 2024 at 5:05 PM Thomas Weißschuh wrote: > > > > On 2024-09-05 16:53:55+, Jason A. Donenfeld wrote: > > > On Thu, Sep 05, 2024 at 07:25:05AM +0200, Thomas Weißschuh wrote: > > > >

Re: qemu direct kernel boot on LoongArch

2024-09-05 Thread Thomas Weißschuh
On 2024-09-05 16:53:55+, Jason A. Donenfeld wrote: > On Thu, Sep 05, 2024 at 07:25:05AM +0200, Thomas Weißschuh wrote: > > On 2024-09-05 06:04:12+, Jason A. Donenfeld wrote: > > > On Thu, Sep 5, 2024 at 5:45 AM maobibo wrote: > > > > > > > > Jason

Re: qemu direct kernel boot on LoongArch

2024-09-04 Thread Thomas Weißschuh
On 2024-09-05 06:04:12+, Jason A. Donenfeld wrote: > On Thu, Sep 5, 2024 at 5:45 AM maobibo wrote: > > > > Jason, > > > > With the latest qemu 9.1 version, elf format booting is supported. > > Thanks, I just figured this out too, about 4 minutes ago. Excellent. > And the 1G minimum ram limit

[PATCH v7] docs: add test for firmware.json QAPI

2024-07-24 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid, add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Reviewed-by: Daniel P. Berrangé Acked-by: Markus Armbruster Signed-off-by: Thomas Weißschuh

Re: [PATCH v6 4/4] docs: add test for firmware.json QAPI

2024-07-22 Thread Thomas Weißschuh
Hi Philippe, On Tue, Jul 23, 2024 at 12:15:24AM GMT, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 19/7/24 09:37, Thomas Weißschuh wrote: > > To make sure that the QAPI description stays valid, add a testcase. > > > > Suggested-by: Philippe Mathieu-

[PATCH v6 2/4] docs/interop/firmware.json: add new enum FirmwareArchitecture

2024-07-19 Thread Thomas Weißschuh
for most of its members, and the members are what matters in the interface. Suggested-by: Daniel P. Berrangé Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) di

[PATCH v6 0/4] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-07-19 Thread Thomas Weißschuh
docs/interop/firmware.json is currently not usable with qapi-gen.py due to various non-functional issues. Fix those issue to provide compatibility. Kashyap, I stuck with the original wording for image format docs, as I personally prefer them a bit. Signed-off-by: Thomas Weißschuh --- Changes in

[PATCH v6 4/4] docs: add test for firmware.json QAPI

2024-07-19 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid, add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/meson.build | 5 + 1

[PATCH v6 1/4] docs/interop/firmware.json: add new enum FirmwareFormat

2024-07-19 Thread Thomas Weißschuh
embers, and the members are what matters in the interface. Suggested-by: Daniel P. Berrangé Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/interop/firmw

[PATCH v6 3/4] docs/interop/firmware.json: convert "Example" section

2024-07-19 Thread Thomas Weißschuh
s about to be added, adapt firmware.json. Reviewed-by: Markus Armbruster Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index ae4179994479..57f55f6c5455 100644 ---

Re: [PATCH v5 2/4] docs/interop/firmware.json: add new enum FirmwareArchitecture

2024-07-18 Thread Thomas Weißschuh
On Thu, Jul 18, 2024 at 03:18:07PM GMT, Markus Armbruster wrote: > Thomas Weißschuh writes: > > > Only a small subset of all architectures supported by qemu make use of > > firmware files. Introduce and use a new enum to represent this. > > > > This also removes

Re: [PATCH v5 1/4] docs/interop/firmware.json: add new enum FirmwareFormat

2024-07-18 Thread Thomas Weißschuh
On Thu, Jul 18, 2024 at 03:09:37PM GMT, Markus Armbruster wrote: > Thomas Weißschuh writes: > > > Only a small subset of all blockdev drivers make sense for firmware > > images. Introduce and use a new enum to represent this. > > > > This also reduces the depend

[PATCH v5 0/4] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-07-18 Thread Thomas Weißschuh
ed patch 3 necessary. Signed-off-by: Thomas Weißschuh --- Changes in v5: - Add Reviewed-by from Daniel - Add patch to drop Example section - Link to v4: https://lore.kernel.org/r/20240718-qapi-firmware-json-v4-0-449ce672d...@linutronix.de Changes in v4: - Update "since" to 9.1 - Add com

[PATCH v5 2/4] docs/interop/firmware.json: add new enum FirmwareArchitecture

2024-07-18 Thread Thomas Weißschuh
-by: Thomas Weißschuh --- docs/interop/firmware.json | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index a26fe81bf2fe..2eb0be11d595 100644 --- a/docs/interop/firmware.json +++ b/docs/interop

[PATCH v5 3/4] docs/interop/firmware.json: convert "Example" section

2024-07-18 Thread Thomas Weißschuh
added, adapt firmware.json. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index 2eb0be11d595..eea82eef3a07 100644 --- a/docs/interop/firmware.json +++ b/doc

[PATCH v5 4/4] docs: add test for firmware.json QAPI

2024-07-18 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/meson.build | 5 + 1

[PATCH v5 1/4] docs/interop/firmware.json: add new enum FirmwareFormat

2024-07-18 Thread Thomas Weißschuh
Only a small subset of all blockdev drivers make sense for firmware images. Introduce and use a new enum to represent this. This also reduces the dependency on firmware.json from the global qapi definitions. Suggested-by: Daniel P. Berrangé Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas

[PATCH v4 3/3] docs: add test for firmware.json QAPI

2024-07-18 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Signed-off-by: Thomas Weißschuh --- docs/meson.build | 5 + 1 file changed, 5 insertions

[PATCH v4 0/3] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-07-18 Thread Thomas Weißschuh
seems clear the we have to keep it. Signed-off-by: Thomas Weißschuh --- Changes in v4: - Update "since" to 9.1 - Add comment to 'member-name-exceptions' - Document enum members and drop 'documentation-exceptions' - Link to v3: https://lore.kernel.org/r/20240311-qap

[PATCH v4 1/3] docs/interop/firmware.json: add new enum FirmwareFormat

2024-07-18 Thread Thomas Weißschuh
Only a small subset of all blockdev drivers make sense for firmware images. Introduce and use a new enum to represent this. This also reduces the dependency on firmware.json from the global qapi definitions. Suggested-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/interop

[PATCH v4 2/3] docs/interop/firmware.json: add new enum FirmwareArchitecture

2024-07-18 Thread Thomas Weißschuh
Only a small subset of all architectures supported by qemu make use of firmware files. Introduce and use a new enum to represent this. This also removes the dependency to machine.json from the global qapi definitions. Suggested-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs

Re: [PATCH v8 3/8] hw/misc/pvpanic: centralize definition of supported events

2024-06-21 Thread Thomas Weißschuh
On 2024-06-21 06:26:19+, Michael S. Tsirkin wrote: > On Mon, May 27, 2024 at 08:27:49AM +0200, Thomas Weißschuh wrote: > > diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c > > index 1540e9091a45..a4982cc5928e 100644 > > --- a/hw/misc/pvpanic.c > > +++ b/hw/m

[PATCH v8 2/8] linux-headers: update to 6.10-rc1

2024-05-26 Thread Thomas Weißschuh
Signed-off-by: Thomas Weißschuh --- include/standard-headers/linux/ethtool.h| 55 +++ include/standard-headers/linux/pci_regs.h | 6 ++ include/standard-headers/linux/pvpanic.h| 7 +- include/standard-headers/linux/virtio_bt.h | 1 - include/standard-headers/linux

[PATCH v8 6/8] pvpanic: Emit GUEST_PVSHUTDOWN QMP event on pvpanic shutdown signal

2024-05-26 Thread Thomas Weißschuh
From: Alejandro Jimenez Emit a QMP event on receiving a PVPANIC_SHUTDOWN event. Even though a typical SHUTDOWN event will be sent, it will be indistinguishable from a shutdown originating from other cases (e.g. KVM exit due to KVM_SYSTEM_EVENT_SHUTDOWN) that also issue the guest-shutdown cause. A

[PATCH v8 8/8] Revert "docs/specs/pvpanic: mark shutdown event as not implemented"

2024-05-26 Thread Thomas Weißschuh
The missing functionality has been implemented now. This reverts commit e739d1935c461d0668057e9dbba9d06f728d29ec. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.rst b/docs/specs/pvpanic.rst index

[PATCH v8 7/8] tests/qtest/pvpanic: add tests for pvshutdown event

2024-05-26 Thread Thomas Weißschuh
Validate that a shutdown via the pvpanic device emits the correct QMP events. Signed-off-by: Thomas Weißschuh Reviewed-by: Thomas Huth --- tests/qtest/pvpanic-pci-test.c | 39 +++ tests/qtest/pvpanic-test.c | 29 + 2 files

[PATCH v8 1/8] scripts/update-linux-headers: Copy setup_data.h to correct directory

2024-05-26 Thread Thomas Weißschuh
Add the missing "include/" path component, so the files ends up in the correct place like the other headers. Fixes: 66210a1a30f2 ("scripts/update-linux-headers: Add setup_data.h to import list") Signed-off-by: Thomas Weißschuh --- scripts/update-linux-headers.sh | 2 +

[PATCH v8 4/8] tests/qtest/pvpanic: use centralized definition of supported events

2024-05-26 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4

[PATCH v8 5/8] hw/misc/pvpanic: add support for normal shutdowns

2024-05-26 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Acked-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic.c | 5

[PATCH v8 0/8] update linux headers to v6.10-rc1 and shutdown support for pvpanic

2024-05-26 Thread Thomas Weißschuh
. Tsirkin To: Cornelia Huck To: Paolo Bonzini To: Thomas Huth To: Laurent Vivier To: Eric Blake To: Markus Armbruster Cc: qemu-devel@nongnu.org Cc: Alejandro Jimenez Cc: k...@vger.kernel.org Signed-off-by: Thomas Weißschuh Changes in v8: - Import linux headers from v6.10-rc1 (and update series

[PATCH v8 3/8] hw/misc/pvpanic: centralize definition of supported events

2024-05-26 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 3 +-- hw/misc

[PATCH] hw: debugexit: use runstate API instead of plain exit()

2024-05-23 Thread Thomas Weißschuh
Directly calling exit() prevents any kind of management or handling. Instead use the corresponding runstate API. The default behavior of the runstate API is the same as exit(). Signed-off-by: Thomas Weißschuh --- hw/misc/debugexit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

Re: [PATCH v3 1/3] docs/interop/firmware.json: add new enum FirmwareFormat

2024-03-28 Thread Thomas Weißschuh
Hi Hanna and Kevin, any updates? On Mon, Mar 11, 2024 at 02:29:25PM +0100, Markus Armbruster wrote: > Thomas Weißschuh writes: > > > Only a small subset of all blockdev drivers make sense for firmware > > images. Introduce and use a new enum to represent this. > > &

[PATCH v7 4/7] hw/misc/pvpanic: add support for normal shutdowns

2024-03-23 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Acked-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic.c | 5

[PATCH v7 2/7] tests/qtest/pvpanic: use centralized definition of supported events

2024-03-23 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4

[PATCH v7 7/7] Revert "docs/specs/pvpanic: mark shutdown event as not implemented"

2024-03-23 Thread Thomas Weißschuh
The missing functionality has been implemented now. This reverts commit e739d1935c461d0668057e9dbba9d06f728d29ec. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.rst b/docs/specs/pvpanic.rst index

[PATCH v7 1/7] hw/misc/pvpanic: centralize definition of supported events

2024-03-23 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 3 +-- hw/misc

[PATCH v7 3/7] hw/misc/pvpanic: add local definition for PVPANIC_SHUTDOWN

2024-03-23 Thread Thomas Weißschuh
, where it was added in commit 73279cecca03 ("docs/specs/pvpanic: document shutdown event"). Signed-off-by: Thomas Weißschuh --- include/hw/misc/pvpanic.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h index 947468b81b1a..92

[PATCH v7 6/7] tests/qtest/pvpanic: add tests for pvshutdown event

2024-03-23 Thread Thomas Weißschuh
Validate that a shutdown via the pvpanic device emits the correct QMP events. Signed-off-by: Thomas Weißschuh Reviewed-by: Thomas Huth --- tests/qtest/pvpanic-pci-test.c | 39 +++ tests/qtest/pvpanic-test.c | 29 + 2 files

[PATCH v7 0/7] hw/misc/pvpanic: add support for normal shutdowns

2024-03-23 Thread Thomas Weißschuh
request was voiced to drop move away from a pvpanic uapi header in Linux. [0] https://lore.kernel.org/lkml/20231104-pvpanic-shutdown-v1-1-5ee7c9b3e...@weissschuh.net/ Signed-off-by: Thomas Weißschuh --- Changes in v7: - Keep standard-header/pvpanic.h - Predefine PVPANIC_SHUTDOWN in include/hw/misc

[PATCH v7 5/7] pvpanic: Emit GUEST_PVSHUTDOWN QMP event on pvpanic shutdown signal

2024-03-23 Thread Thomas Weißschuh
From: Alejandro Jimenez Emit a QMP event on receiving a PVPANIC_SHUTDOWN event. Even though a typical SHUTDOWN event will be sent, it will be indistinguishable from a shutdown originating from other cases (e.g. KVM exit due to KVM_SYSTEM_EVENT_SHUTDOWN) that also issue the guest-shutdown cause. A

Re: [PATCH] hw/virtio: Add support for VDPA network simulation devices

2024-03-13 Thread Thomas Weißschuh
On 2024-02-21 15:38:02+0800, Hao Chen wrote: > This patch adds support for VDPA network simulation devices. > The device is developed based on virtio-net and tap backend, > and supports hardware live migration function. > > For more details, please refer to "docs/system/devices/vdpa-net.rst" > >

[PATCH] docs/specs/pvpanic: mark shutdown event as not implemented

2024-03-13 Thread Thomas Weißschuh
Mention the fact that this event is not yet implemented to avoid confusion. As requested by Michael. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.rst b/docs/specs/pvpanic.rst index 61a80480edb8

Re: [PATCH v3 1/3] docs/interop/firmware.json: add new enum FirmwareFormat

2024-03-11 Thread Thomas Weißschuh
On Mon, Mar 11, 2024 at 01:08:19PM +0100, Philippe Mathieu-Daudé wrote: > On 11/3/24 12:46, Thomas Weißschuh wrote: > > Only a small subset of all blockdev drivers make sense for firmware > > images. Introduce and use a new enum to represent this. > > > > This als

[PATCH v3 3/3] docs: add test for firmware.json QAPI

2024-03-11 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Signed-off-by: Thomas Weißschuh --- docs/meson.build | 5 + 1 file changed, 5 insertions

[PATCH v3 1/3] docs/interop/firmware.json: add new enum FirmwareFormat

2024-03-11 Thread Thomas Weißschuh
Only a small subset of all blockdev drivers make sense for firmware images. Introduce and use a new enum to represent this. This also reduces the dependency of firmware.json on the global qapi definitions. Suggested-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs/interop

[PATCH v3 0/3] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-03-11 Thread Thomas Weißschuh
docs/interop/firmware.json is currently not usable with qapi-gen.py due to various non-functional issues. Fix those issue to provide compatibility. Signed-off-by: Thomas Weißschuh --- Changes in v3: - Drop already picked up patches - Drop include of pragma.json - Introduce new enums

[PATCH v3 2/3] docs/interop/firmware.json: add new enum FirmwareArchitecture

2024-03-11 Thread Thomas Weißschuh
Only a small subset of all architectures supported by qemu make use of firmware files. Introduce and use a new enum to represent this. This also removes the dependency of firmware.json on the global qapi definitions. Suggested-by: Daniel P. Berrangé Signed-off-by: Thomas Weißschuh --- docs

[PATCH] docs/specs/pvpanic: document shutdown event

2024-03-10 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Signed-off-by: Thomas Weißschuh --- This patch was split out from my earlier pvpanic-shutdown

Re: [PATCH 3/4] docs/interop/firmware.json: Use full include paths

2024-03-08 Thread Thomas Weißschuh
On Fri, Mar 08, 2024 at 04:19:42PM +0100, Markus Armbruster wrote: > Thomas Weißschuh writes: > > > The included files are part of the toplevel QAPI directory and need to > > be included from there. > > > > Signed-off-by: Thomas Weißschuh > > --- > >

[PATCH v2 0/5] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-03-07 Thread Thomas Weißschuh
docs/interop/firmware.json is currently not usable with qapi-gen.py due to various non-functional issues. Fix those issue to provide compatibility. Signed-off-by: Thomas Weißschuh --- Changes in v2: - Add review tag from Philippe - Add Fixes tag (Philippe) - Add testcase (Philippe) - Link to v1

[PATCH v2 5/5] docs: add test for firmware.json QAPI

2024-03-07 Thread Thomas Weißschuh
To make sure that the QAPI description stays valid add a testcase. Suggested-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/qemu-devel/d9ce0234-4beb-4b90-b14c-76810d3b8...@linaro.org/ Signed-off-by: Thomas Weißschuh --- docs/meson.build | 5 + 1 file changed, 5 insertions

[PATCH v2 4/5] docs/interop/firmware.json: Include pragma.json

2024-03-07 Thread Thomas Weißschuh
The files included by firmware.json use names that do not satisfy the generators requirements. By including pragma.json these errors are suppressed. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/interop/firmware.json b

[PATCH v2 3/5] docs/interop/firmware.json: Use full include paths

2024-03-07 Thread Thomas Weißschuh
The included files are part of the toplevel QAPI directory and need to be included from there. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index

[PATCH v2 1/5] docs/interop/firmware.json: Align examples

2024-03-07 Thread Thomas Weißschuh
The QAPI generator now validates the alignment and rejects this file. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 384 ++--- 1 file changed, 192 insertions(+), 192 deletions(-) diff --git a/docs/interop/firmware.json b/docs/interop

[PATCH v2 2/5] docs/interop/firmware.json: Fix doc for FirmwareFlashMode

2024-03-07 Thread Thomas Weißschuh
The doc title did not match the actual definition. Fixes: 2720ceda05 ("docs: expand firmware descriptor to allow flash without NVRAM") Signed-off-by: Thomas Weißschuh Reviewed-by: Philippe Mathieu-Daudé --- docs/interop/firmware.json | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 0/4] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-03-06 Thread Thomas Weißschuh
On Wed, Mar 06, 2024 at 05:15:34PM +0100, Philippe Mathieu-Daudé wrote: > On 6/3/24 11:31, Thomas Weißschuh wrote: > > docs/interop/firmware.json is currently not usable with qapi-gen.py due > > to various non-functional issues. > > Fix those issue to provide compatibility. &

[PATCH 3/4] docs/interop/firmware.json: Use full include paths

2024-03-06 Thread Thomas Weißschuh
The included files are part of the toplevel QAPI directory and need to be included from there. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index

[PATCH 1/4] docs/interop/firmware.json: Align examples

2024-03-06 Thread Thomas Weißschuh
The QAPI generator now validates the alignment and rejects this file. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 384 ++--- 1 file changed, 192 insertions(+), 192 deletions(-) diff --git a/docs/interop/firmware.json b/docs/interop

[PATCH 0/4] docs/interop/firmware.json: scripts/qapi-gen.py compatibility

2024-03-06 Thread Thomas Weißschuh
docs/interop/firmware.json is currently not usable with qapi-gen.py due to various non-functional issues. Fix those issue to provide compatibility. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (4): docs/interop/firmware.json: Align examples docs/interop/firmware.json: Fix doc

[PATCH 4/4] docs/interop/firmware.json: Include pragma.json

2024-03-06 Thread Thomas Weißschuh
The files included by firmware.json use names that do not satisfy the generators requirements. By including pragma.json these errors are suppressed. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/interop/firmware.json b

[PATCH 2/4] docs/interop/firmware.json: Fix doc for FirmwareFlashMode

2024-03-06 Thread Thomas Weißschuh
The doc title did not match the actual definition. Signed-off-by: Thomas Weißschuh --- docs/interop/firmware.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json index a024f1b9bf3f..54a1fc6c1041 100644 --- a/docs

Re: [PATCH] net/slirp: Use newer slirp_*_hostxfwd API

2024-02-22 Thread Thomas Weißschuh
Hi Nicholas, On Tue, Mar 22, 2022 at 06:58:36PM -0700, Nicholas Ngai wrote: > Pinging this. It’s a bit old, though the patch still applies cleanly to > master as far as I can tell. > > Link to patchew is > https://patchew.org/QEMU/20210925214820.18078-1-nicho...@ngai.me/. > > I’d love to get htt

[PATCH v6 1/6] linux-headers: drop pvpanic.h

2024-02-08 Thread Thomas Weißschuh
: Thomas Weißschuh --- hw/misc/pvpanic-isa.c| 1 - hw/misc/pvpanic-pci.c| 1 - hw/misc/pvpanic.c| 1 - include/hw/misc/pvpanic.h| 3 +++ include/standard-headers/linux/pvpanic.h | 9 - scripts/update-linux-headers.sh

[PATCH v6 4/6] hw/misc/pvpanic: add support for normal shutdowns

2024-02-08 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Acked-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst| 2 ++ hw

[PATCH v6 5/6] pvpanic: Emit GUEST_PVSHUTDOWN QMP event on pvpanic shutdown signal

2024-02-08 Thread Thomas Weißschuh
From: Alejandro Jimenez Emit a QMP event on receiving a PVPANIC_SHUTDOWN event. Even though a typical SHUTDOWN event will be sent, it will be indistinguishable from a shutdown originating from other cases (e.g. KVM exit due to KVM_SYSTEM_EVENT_SHUTDOWN) that also issue the guest-shutdown cause. A

[PATCH v6 2/6] hw/misc/pvpanic: centralize definition of supported events

2024-02-08 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 2 +- hw/misc

[PATCH v6 3/6] tests/qtest/pvpanic: use centralized definition of supported events

2024-02-08 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4

[PATCH v6 0/6] hw/misc/pvpanic: add support for normal shutdowns

2024-02-08 Thread Thomas Weißschuh
: Thomas Weißschuh --- Changes in v6: - Replace magic constant "4" in tests with PVPANIC_SHUTDOWN - Link to v5: https://lore.kernel.org/r/20240129-pvpanic-shutdown-v5-0-f5a060b87...@t-8ch.de Changes in v5: - Add patch from Alejandro to emit a QMP event. - Update cover letter. - Add tests.

[PATCH v6 6/6] tests/qtest/pvpanic: add tests for pvshutdown event

2024-02-08 Thread Thomas Weißschuh
Validate that a shutdown via the pvpanic device emits the correct QMP events. Signed-off-by: Thomas Weißschuh Reviewed-by: Thomas Huth --- tests/qtest/pvpanic-pci-test.c | 39 +++ tests/qtest/pvpanic-test.c | 29 + 2 files

[PATCH v5 1/6] linux-headers: drop pvpanic.h

2024-01-29 Thread Thomas Weißschuh
: Thomas Weißschuh --- hw/misc/pvpanic-isa.c| 1 - hw/misc/pvpanic-pci.c| 1 - hw/misc/pvpanic.c| 1 - include/hw/misc/pvpanic.h| 3 +++ include/standard-headers/linux/pvpanic.h | 9 - scripts/update-linux-headers.sh

[PATCH v5 3/6] tests/qtest/pvpanic: use centralized definition of supported events

2024-01-29 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4

[PATCH v5 2/6] hw/misc/pvpanic: centralize definition of supported events

2024-01-29 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 2 +- hw/misc

[PATCH v5 4/6] hw/misc/pvpanic: add support for normal shutdowns

2024-01-29 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Acked-by: Cornelia Huck Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst| 2 ++ hw

[PATCH v5 6/6] tests/qtest/pvpanic: add tests for pvshutdown event

2024-01-29 Thread Thomas Weißschuh
Validate that a shutdown via the pvpanic device emits the correct QMP events. Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 39 +++ tests/qtest/pvpanic-test.c | 29 + 2 files changed, 68 insertions

[PATCH v5 5/6] pvpanic: Emit GUEST_PVSHUTDOWN QMP event on pvpanic shutdown signal

2024-01-29 Thread Thomas Weißschuh
From: Alejandro Jimenez Emit a QMP event on receiving a PVPANIC_SHUTDOWN event. Even though a typical SHUTDOWN event will be sent, it will be indistinguishable from a shutdown originating from other cases (e.g. KVM exit due to KVM_SYSTEM_EVENT_SHUTDOWN) that also issue the guest-shutdown cause. A

[PATCH v5 0/6] hw/misc/pvpanic: add support for normal shutdowns

2024-01-29 Thread Thomas Weißschuh
: Thomas Weißschuh --- Changes in v5: - Add patch from Alejandro to emit a QMP event. - Update cover letter. - Add tests. - Link to v4: https://lore.kernel.org/r/20240107-pvpanic-shutdown-v4-0-81500a7e4...@t-8ch.de Changes in v4: - Rebase on 8.2 master - Resend after tree reopened and holidays

Re: Re: [PATCH v4 4/4] hw/misc/pvpanic: add support for normal shutdowns

2024-01-26 Thread Thomas Weißschuh
Hi Alejandro, On 2024-01-26 13:47:33-0500, Alejandro Jimenez wrote: > On 1/7/24 09:05, Thomas Weißschuh wrote: > > Shutdown requests are normally hardware dependent. > > By extending pvpanic to also handle shutdown requests, guests can > > submit such requests with an eas

[PATCH v3 0/2] linux-user: two fixes to coredump generation

2024-01-20 Thread Thomas Weißschuh
Signed-off-by: Thomas Weißschuh --- Changes in v3: - Add braces to if statements - Add Reviewed-by from Richard - Link to v2: https://lore.kernel.org/r/20240107-qemu-user-dumpable-v2-0-54e3bcfc0...@t-8ch.de Changes in v2: - Rebase on 8.2 master - Resend after closed tree and holidays - Link to

[PATCH v3 1/2] linux-user/elfload: test return value of getrlimit

2024-01-20 Thread Thomas Weißschuh
Should getrlimit() fail the value of dumpsize.rlimit_cur may not be initialized. Avoid reading garbage data by checking the return value of getrlimit. Reviewed-by: Richard Henderson Signed-off-by: Thomas Weißschuh --- linux-user/elfload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 2/2] linux-user/elfload: check PR_GET_DUMPABLE before creating coredump

2024-01-20 Thread Thomas Weißschuh
ard Henderson Signed-off-by: Thomas Weißschuh --- linux-user/elfload.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index c5968719380a..daf7ef843564 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2,6 +2,7 @@ #include "qemu

Re: Re: [PATCH v2 0/2] linux-user: two fixes to coredump generation

2024-01-09 Thread Thomas Weißschuh
On 2024-01-10 08:33:11+1100, Richard Henderson wrote: > On 1/8/24 01:01, Thomas Weißschuh wrote: > > Signed-off-by: Thomas Weißschuh > > --- > > Changes in v2: > > - Rebase on 8.2 master > > - Resend after closed tree and holidays > > - Link to v1: >

[PATCH v4 3/4] tests/qtest/pvpanic: use centralized definition of supported events

2024-01-07 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests

[PATCH v4 4/4] hw/misc/pvpanic: add support for normal shutdowns

2024-01-07 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst| 2 ++ hw/misc/pvpanic.c

[PATCH v4 2/4] hw/misc/pvpanic: centralize definition of supported events

2024-01-07 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/pvpanic.c | 2

[PATCH v4 1/4] linux-headers: drop pvpanic.h

2024-01-07 Thread Thomas Weißschuh
kernel prefers to drop the header anyways. Prepare for the removal from the Linux UAPI headers by moving the contents to the existing pvpanic.h header. Link: https://lore.kernel.org/lkml/2023110431-pacemaker-pruning-0e4c@gregkh/ Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c

[PATCH v4 0/4] hw/misc/pvpanic: add support for normal shutdowns

2024-01-07 Thread Thomas Weißschuh
-4c68-a74e-7420ec315...@t-8ch.de/ [1] https://lore.kernel.org/lkml/20231104-pvpanic-shutdown-v1-1-5ee7c9b3e...@weissschuh.net/ Signed-off-by: Thomas Weißschuh --- Changes in v4: - Rebase on 8.2 master - Resend after tree reopened and holidays - Link to v3: https://lore.kernel.org/r/20231129-pvpani

[PATCH v2 0/2] linux-user: two fixes to coredump generation

2024-01-07 Thread Thomas Weißschuh
Signed-off-by: Thomas Weißschuh --- Changes in v2: - Rebase on 8.2 master - Resend after closed tree and holidays - Link to v1: https://lore.kernel.org/r/20231115-qemu-user-dumpable-v1-0-edbe7f0fb...@t-8ch.de --- Thomas Weißschuh (2): linux-user/elfload: test return value of getrlimit

[PATCH v2 2/2] linux-user/elfload: check PR_GET_DUMPABLE before creating coredump

2024-01-07 Thread Thomas Weißschuh
A process can opt-out of coredump creation by calling prctl(PR_SET_DUMPABLE, 0). linux-user passes this call from the guest through to the operating system. >From there it can be read back again to avoid creating coredumps from qemu-user itself if the guest chose so. Signed-off-by: Tho

[PATCH v2 1/2] linux-user/elfload: test return value of getrlimit

2024-01-07 Thread Thomas Weißschuh
Should getrlimit() fail the value of dumpsize.rlimit_cur may not be initialized. Avoid reading garbage data by checking the return value of getrlimit. Signed-off-by: Thomas Weißschuh --- linux-user/elfload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user

[PATCH v3 4/4] hw/misc/pvpanic: add support for normal shutdowns

2023-11-29 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst| 2 ++ hw/misc/pvpanic.c

[PATCH v3 3/4] tests/qtest/pvpanic: use centralized definition of supported events

2023-11-29 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests

[PATCH v3 2/4] hw/misc/pvpanic: centralize definition of supported events

2023-11-29 Thread Thomas Weißschuh
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/pvpanic.c | 2

[PATCH v3 1/4] linux-headers: drop pvpanic.h

2023-11-29 Thread Thomas Weißschuh
kernel prefers to drop the header anyways. Prepare for the removal from the Linux UAPI headers by moving the contents to the existing pvpanic.h header. Link: https://lore.kernel.org/lkml/2023110431-pacemaker-pruning-0e4c@gregkh/ Signed-off-by: Thomas Weißschuh --- hw/misc/pvpanic-isa.c

[PATCH v3 0/4] hw/misc/pvpanic: add support for normal shutdowns

2023-11-29 Thread Thomas Weißschuh
-4c68-a74e-7420ec315...@t-8ch.de/ [1] https://lore.kernel.org/lkml/20231104-pvpanic-shutdown-v1-1-5ee7c9b3e...@weissschuh.net/ Signed-off-by: Thomas Weißschuh --- Changes in v3: - Drop from Linux imported pvpanic header as discussed with Cornelia and requested by Greg - Link to v2: https://lore.

Re: [PATCH v2 3/3] hw/misc/pvpanic: add support for normal shutdowns

2023-11-29 Thread Thomas Weißschuh
On 2023-11-29 14:15:14+0100, Cornelia Huck wrote: > On Wed, Nov 29 2023, Thomas Weißschuh wrote: > > On 2023-11-29 09:23:46+0100, Cornelia Huck wrote: > >> On Tue, Nov 28 2023, Thomas Weißschuh wrote: > >> > diff --git a/include/standard-headers/linux/pvpanic.h >

Re: [PATCH v2 3/3] hw/misc/pvpanic: add support for normal shutdowns

2023-11-29 Thread Thomas Weißschuh
On 2023-11-29 09:23:46+0100, Cornelia Huck wrote: > On Tue, Nov 28 2023, Thomas Weißschuh wrote: > > > Shutdown requests are normally hardware dependent. > > By extending pvpanic to also handle shutdown requests, guests can > > submit such requests with an easily implemen

[PATCH v2 3/3] hw/misc/pvpanic: add support for normal shutdowns

2023-11-28 Thread Thomas Weißschuh
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Signed-off-by: Thomas Weißschuh --- docs/specs/pvpanic.rst | 2 ++ hw/misc

[PATCH v2 2/3] tests/qtest/pvpanic: use centralized definition of supported events

2023-11-28 Thread Thomas Weißschuh
Avoid the necessity to update all tests when new events are added to the device. Acked-by: Thomas Huth Signed-off-by: Thomas Weißschuh --- tests/qtest/pvpanic-pci-test.c | 5 +++-- tests/qtest/pvpanic-test.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests

  1   2   >