Re: [PATCH 06/22] exec/cpu: Call cpu_remove_sync() once in cpu_common_unrealize()

2023-11-28 Thread Igor Mammedov
On Mon, 18 Sep 2023 18:02:39 +0200 Philippe Mathieu-Daudé wrote: > While create_vcpu_thread() creates a vCPU thread, its counterpart > is cpu_remove_sync(), which join and destroy the thread. > > create_vcpu_thread() is called in qemu_init_vcpu(), itself called > in cpu_common_realizefn(). Since

Re: [PATCH v7 00/27] vfio: Adopt iommufd

2023-11-28 Thread Cédric Le Goater
On 11/21/23 09:43, Zhenzhong Duan wrote: Hi, Thanks all for giving guides and comments on previous series, this is the remaining part of the iommufd support. Besides suggested changes in v6, I'd like to highlight two changes for final review: 1. Instantiate can_be_deleted callback to fix race w

Re: [PATCH 1/2] block: commit: Allow users to request only format driver names in backing file format

2023-11-28 Thread Vladimir Sementsov-Ogievskiy
On 24.11.23 17:52, Peter Krempa wrote: Introduce a new flag 'backing_file_format_no_protocol' for the block-commit QMP command which instructs the internals to use 'raw' instead of the protocol driver in case when a image is used without a dummy 'raw' wrapper. The flag is designed such that it c

Re: [PATCH] hw/ppc/Kconfig: Imply VFIO_PCI

2023-11-28 Thread Cédric Le Goater
On 11/24/23 09:06, Cédric Le Goater wrote: When the legacy and iommufd backends were introduced, a set of common vfio-pci routines were exported in pci.c for both backends to use : vfio_pci_pre_reset vfio_pci_get_pci_hot_reset_info vfio_pci_host_match vfio_pci_post_reset This introd

Re: [PATCH v7 01/10] hw/fsi: Introduce IBM's Local bus

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:04, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS is modelled to maintain the qdev bus hierarchy and to take advantage of the object model to automatically g

Re: [PATCH v6 0/3] pnv nest1 chiplet model

2023-11-28 Thread Cédric Le Goater
On 11/27/23 18:13, Chalapathi V wrote: Hello, Thank you for the review and suggestions on V5. The suggestions and changes requested from V5 are addressed in V6. Updates in Version 6 of this series are: 1. adding a device-tree node in QEMU is removed as skiboot defines the device-tree and Q

Re: QEMU Summit Minutes 2023

2023-11-28 Thread Cédric Le Goater
On 11/21/23 18:11, Alex Bennée wrote: Peter Maydell writes: QEMU Summit Minutes 2023 As usual, we held a QEMU Summit meeting at KVM Forum. This is an invite-only meeting for the most active maintainers and submaintainers in the project, and we discuss various project

Re: [PATCH for-8.2] target/arm: Disable SME if SVE is disabled

2023-11-28 Thread Richard Henderson
On 11/27/23 11:33, Peter Maydell wrote: There is no architectural requirement that SME implies SVE, but our implementation currently assumes it. (FEAT_SME_FA64 does imply SVE.) So if you try to run a CPU with eg "-cpu max,sve=off" you quickly run into an assert when the guest tries to write to SM

Re: QEMU Summit Minutes 2023

2023-11-28 Thread Peter Maydell
On Tue, 28 Nov 2023 at 17:54, Cédric Le Goater wrote: > > On 11/21/23 18:11, Alex Bennée wrote: > > Peter Maydell writes: > >> Topic 2: Are we happy with the email workflow? > >> == > >> > >> This was a topic to see if there was any consensus among main

Re: [PATCH for-6.1 v6 14/17] accel/tcg: Move breakpoint recognition outside translation

2023-11-28 Thread Richard Henderson
On 11/28/23 05:08, Philippe Mathieu-Daudé wrote: Hi, On 20/7/21 21:54, Richard Henderson wrote: Trigger breakpoints before beginning translation of a TB that would begin with a BP.  Thus we never generate code for the BP at all. Single-step instructions within a page containing a BP so that we

Re: QEMU Summit Minutes 2023

2023-11-28 Thread Daniel P . Berrangé
On Tue, Nov 28, 2023 at 06:54:42PM +0100, Cédric Le Goater wrote: > On 11/21/23 18:11, Alex Bennée wrote: > > Peter Maydell writes: > > > > > QEMU Summit Minutes 2023 > > > > > > > > > As usual, we held a QEMU Summit meeting at KVM Forum. This is an > > > invite-only me

Re: [PATCH v2 4/4] target/arm: Add support for DC CVAP & DC CVADP ins

2023-11-28 Thread Richard Henderson
On 11/28/23 05:44, Philippe Mathieu-Daudé wrote: Thank you Peter. In this case I'm compiling HVF, but this is the same reasoning. I'll add #ifdef'ry similar to ats_write() (commit 9fb005b02d "target/arm: Restrict the Address Translate write operation to TCG accel"): -- >8 -- diff --git a/target/

Re: QEMU Summit Minutes 2023

2023-11-28 Thread Daniel P . Berrangé
On Tue, Nov 28, 2023 at 06:05:25PM +, Peter Maydell wrote: > On Tue, 28 Nov 2023 at 17:54, Cédric Le Goater wrote: > > > > On 11/21/23 18:11, Alex Bennée wrote: > > > Peter Maydell writes: > > >> Topic 2: Are we happy with the email workflow? > > >> ===

[PATCH v2 1/3] hw/misc/pvpanic: centralize definition of supported events

2023-11-28 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 | 3 +-- hw/misc/pvpanic-pci.c | 3 +-- hw/misc/pvpanic.c | 3 +--

[PATCH v2 0/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. The background is the usage of minimal Linux kernels with different architectures for testing purpose

[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/qte

[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/pvpani

Re: [PATCH v6 0/3] pnv nest1 chiplet model

2023-11-28 Thread Cédric Le Goater
On 11/28/23 18:38, Cédric Le Goater wrote: On 11/27/23 18:13, Chalapathi V wrote: Hello, Thank you for the review and suggestions on V5. The suggestions and changes requested from V5 are addressed in V6. Updates in Version 6 of this series are: 1. adding a device-tree node in QEMU is removed

Re: [PATCH 1/2] block: commit: Allow users to request only format driver names in backing file format

2023-11-28 Thread Peter Krempa
On Tue, Nov 28, 2023 at 20:10:10 +0300, Vladimir Sementsov-Ogievskiy wrote: > On 24.11.23 17:52, Peter Krempa wrote: > > Introduce a new flag 'backing_file_format_no_protocol' for the > > block-commit QMP command which instructs the internals to use 'raw' > > instead of the protocol driver in case

Re: [PATCH v7 01/10] hw/fsi: Introduce IBM's Local bus

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:30, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS is modelled to maintain the qdev bus hierarchy and to take advantage of the object model to automatically g

Re: [PATCH v7 02/10] hw/fsi: Introduce IBM's scratchpad

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:09, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where scratchpad is introduced. The scratchpad provides a set of non-functional registers. The firmware is free to use them, hardware does not support any special managem

Re: [PATCH v7 03/10] hw/fsi: Introduce IBM's cfam,fsi-slave

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:16, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The Common FRU Access Macro (CFAM), an address space containing various "engines" that drive accesses on busses inte

Re: [PATCH v7 03/10] hw/fsi: Introduce IBM's cfam,fsi-slave

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:31, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The Common FRU Access Macro (CFAM), an address space containing various "engines" that drive accesses on busses inte

Re: [PATCH v7 04/10] hw/fsi: Introduce IBM's FSI

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:19, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. This commit models the FSI bus. CFAM is hanging out of FSI bus. The bus is model such a way that it is embedded insi

Re: [PATCH v7 05/10] hw/fsi: IBM's On-chip Peripheral Bus

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:23, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The On-Chip Peripheral Bus (OPB): A low-speed bus typically found in POWER processors. This now makes an appearance

Re: [PATCH v7 1/8] machine: Use error handling when CPU type is checked

2023-11-28 Thread Gavin Shan
Hi Phil, On 11/28/23 20:43, Philippe Mathieu-Daudé wrote: On 27/11/23 00:12, Gavin Shan wrote: QEMU will be terminated if the specified CPU type isn't supported in machine_run_board_init(). The list of supported CPU type names is tracked by mc->valid_cpu_types. The error handling can be used t

Re: [PATCH v7 06/10] hw/fsi: Aspeed APB2OPB interface

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:25, Cédric Le Goater wrote: On 10/26/23 18:47, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. An APB-to-OPB bridge enabling access to the OPB from the ARM core in the AST2600. Hardware limitations prevent the

Re: [PATCH v7 00/10] Introduce model for IBM's FSI

2023-11-28 Thread Ninad Palsule
Hello Cedric, On 11/27/23 10:31, Cédric Le Goater wrote: Hello Ninad, On 10/26/23 18:47, Ninad Palsule wrote: Hello, Please review the patch-set version 7. I have incorporated review comments from Cedric, Philippe and Thomas. I reworked v7 with the suggestions I made in patches 1-6. Please

Re: [PATCH v7 2/8] machine: Introduce helper is_cpu_type_supported()

2023-11-28 Thread Gavin Shan
Hi Phil, On 11/28/23 20:38, Philippe Mathieu-Daudé wrote: On 27/11/23 00:12, Gavin Shan wrote: The logic, to check if the specified CPU type is supported in machine_run_board_init(), is independent enough. Factor it out into helper is_cpu_type_supported(). machine_run_board_init() looks a bit c

Re: [PULL 00/13] target-arm queue

2023-11-28 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PULL 0/7] Misc fixes for 2023-11-28

2023-11-28 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

[PATCH v8 09/10] hw/fsi: Added FSI documentation

2023-11-28 Thread Ninad Palsule
Documentation for IBM FSI model. Signed-off-by: Ninad Palsule Signed-off-by: Cédric Le Goater --- docs/specs/fsi.rst | 138 +++ docs/specs/index.rst | 1 + 2 files changed, 139 insertions(+) create mode 100644 docs/specs/fsi.rst diff --git a/docs/sp

[PATCH v8 05/10] hw/fsi: Introduce IBM's FSI master

2023-11-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. This commit models the FSI master. CFAM is hanging out of FSI master which is a bus controller. The FSI master: A controller in the platform service processor (e.g. BMC) driving CFAM engine accesses into the POWER c

[PATCH v8 03/10] hw/fsi: Introduce IBM's cfam,fsi-slave,scratchpad

2023-11-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The Common FRU Access Macro (CFAM), an address space containing various "engines" that drive accesses on busses internal and external to the POWER chip. Examples include the SBEFIFO and I2C masters. The engines hang o

[PATCH v8 02/10] hw/fsi: Introduce IBM's FSI Bus

2023-11-28 Thread Ninad Palsule
This is a part of patchset where FSI bus is introduced. The FSI bus is a simple bus where FSI master is attached. Signed-off-by: Andrew Jeffery Signed-off-by: Ninad Palsule [ clg: - removed include/hw/fsi/engine-scratchpad.h and hw/fsi/engine-scratchpad.c - dropped FSI_SCRATCHPA

[PATCH v8 08/10] hw/fsi: Added qtest

2023-11-28 Thread Ninad Palsule
Added basic qtests for FSI model. Signed-off-by: Ninad Palsule Acked-by: Thomas Huth Signed-off-by: Cédric Le Goater --- tests/qtest/aspeed-fsi-test.c | 205 ++ tests/qtest/meson.build | 1 + 2 files changed, 206 insertions(+) create mode 100644 tests/q

[PATCH v8 00/10] Introduce model for IBM's FSI

2023-11-28 Thread Ninad Palsule
Hello, Please review the patch-set version 8. I have incorporated review comments from Cedric. - Fixed checkpatch failures. - Fixed commit messages. - Fixed LBUS memory map size. Ninad Palsule (10): hw/fsi: Introduce IBM's Local bus hw/fsi: Introduce IBM's FSI Bus hw/fsi: Introduce IB

[PATCH v8 06/10] hw/fsi: Aspeed APB2OPB interface

2023-11-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. An APB-to-OPB bridge enabling access to the OPB from the ARM core in the AST2600. Hardware limitations prevent the OPB from being directly mapped into APB, so all accesses are indirect through the bridge. Signed-off-

[PATCH v8 04/10] hw/fsi: IBM's On-chip Peripheral Bus

2023-11-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The On-Chip Peripheral Bus (OPB): A low-speed bus typically found in POWER processors. This now makes an appearance in the ASPEED SoC due to tight integration of the FSI master IP with the OPB, mainly the existence of

[PATCH v8 01/10] hw/fsi: Introduce IBM's Local bus

2023-11-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS is modelled to maintain mapped memory for the devices. The memory is mapped after CFAM config, peek table and FSI slave registers. Signed-off-by: Andrew Jeffery Signed-off-by: Ninad Palsule [ clg: - remove

[PATCH v8 07/10] hw/arm: Hook up FSI module in AST2600

2023-11-28 Thread Ninad Palsule
This patchset introduces IBM's Flexible Service Interface(FSI). Time for some fun with inter-processor buses. FSI allows a service processor access to the internal buses of a host POWER processor to perform configuration or debugging. FSI has long existed in POWER processes and so comes with some

[PATCH v8 10/10] hw/fsi: Update MAINTAINER list

2023-11-28 Thread Ninad Palsule
Added maintainer for IBM FSI model Signed-off-by: Ninad Palsule Signed-off-by: Cédric Le Goater --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 695e0bd34f..0536b585fc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3558,6 +3558,14 @@ F:

[ANNOUNCE] QEMU 8.2.0-rc2 is now available

2023-11-28 Thread Michael Roth
Hello, On behalf of the QEMU Team, I'd like to announce the availability of the third release candidate for the QEMU 8.2 release. This release is meant for testing purposes and should not be used in a production environment. http://download.qemu.org/qemu-8.2.0-rc2.tar.xz http://download.qemu.

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

2023-11-28 Thread Yong Huang
I'll try to understand the comment, if i misunderstood, please point out. On Wed, Nov 29, 2023 at 12:20 AM Daniel P. Berrangé wrote: > On Tue, Nov 28, 2023 at 04:57:20PM +0100, Philippe Mathieu-Daudé wrote: > > Hi Hyman, > > > > On 28/11/23 16:24, Hyman Huang wrote: > > > Introduce the SM4 ciphe

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

2023-11-28 Thread Yong Huang
On Tue, Nov 28, 2023 at 11:57 PM Philippe Mathieu-Daudé wrote: > Hi Hyman, > > On 28/11/23 16:24, Hyman Huang wrote: > > Introduce the SM4 cipher algorithms (OSCCA GB/T 32907-2016). > > > > SM4 (GBT.32907-2016) is a cryptographic standard issued by the > > Organization of State Commercial Adminis

Re: [PATCH v3] migration: free 'saddr' since be no longer used

2023-11-28 Thread Zongmin Zhou
Ping? Has this been forgotten? Best regards! On 2023/11/20 22:01, Peter Xu wrote: On Mon, Nov 20, 2023 at 11:14:28AM +0800, Zongmin Zhou wrote: Since socket_parse() will allocate memory for 'saddr',and its value will pass to 'addr' that allocated by migrate_uri_parse(), then 'saddr' will no lo

[PATCH v3] arm/kvm: Enable support for KVM_ARM_VCPU_PMU_V3_FILTER

2023-11-28 Thread Shaoqin Huang
The KVM_ARM_VCPU_PMU_V3_FILTER provide the ability to let the VMM decide which PMU events are provided to the guest. Add a new option `pmu-filter` as -accel sub-option to set the PMU Event Filtering. Without the filter, the KVM will expose all events from the host to guest by default. The `pmu-fil

Re: [PATCH v2 01/14] spapr: nested: move nested part of spapr_get_pate into spapr_nested.c

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > Most of the nested code has already been moved to spapr_nested.c > This logic inside spapr_get_pate is related to nested guests and > better suited for spapr_nested.c, hence moving there. > > Signed-off-by: Harsh Prateek Bora Review

Re: [PATCH v2 02/14] spapr: nested: Introduce SpaprMachineStateNested to store related info.

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > Currently, nested_ptcr is being used by existing nested-hv API to store > nested guest related info. This need to be organised to extend support > for the nested PAPR API which would need to store additional info related > to nested g

Re: [PATCH v7 3/8] machine: Print CPU model name instead of CPU type

2023-11-28 Thread Gavin Shan
Hi Phil, On 11/28/23 20:55, Philippe Mathieu-Daudé wrote: On 27/11/23 00:12, Gavin Shan wrote: The names of supported CPU models instead of CPU types should be printed when the user specified CPU type isn't supported, to be consistent with the output from '-cpu ?'. Correct the error messages t

Re: [PATCH v2 04/14] spapr: nested: Introduce cap-nested-papr for Nested PAPR API

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > Introduce a SPAPR capability cap-nested-papr which provides a nested > HV facility to the guest. This is similar to cap-nested-hv, but uses > a different (incompatible) API and so they are mutually exclusive. > This new API is to enab

Re: [PATCH v2 05/14] spapr: nested: register nested-hv api hcalls only for cap-nested-hv

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > Since cap-nested-hv and cap-nested-papr are mutually exclusive, now it > makes sense to register api specfic hcalls only when respective > capability is enabled, hence this change. > > Signed-off-by: Harsh Prateek Bora I think this

Re: [PATCH v2 11/14] spapr: nested: Use correct source for parttbl info for nested PAPR API.

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > For nested PAPR API, we use SpaprMachineStateNestedGuest struct to store > partition table info, use the same in spapr_get_pate_nested() as well. > > Signed-off-by: Michael Neuling > Signed-off-by: Harsh Prateek Bora > --- > hw/ppc

Re: [PATCH v2 13/14] spapr: nested: keep nested-hv exit code restricted to its API.

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > spapr_exit_nested gets triggered on a nested guest exit and currently > being used only for nested-hv API. Isolating code flows based on API > helps extending it to be used with nested PAPR API as well. > Reviewed-by: Nicholas Piggin

[PATCH v8 0/9] Unified CPU type check

2023-11-28 Thread Gavin Shan
This series bases on Phil's repository because the prepatory commits have been queued to the branch. https://gitlab.com/philmd/qemu.git (branch: cpus-next) There are two places where the user specified CPU type is checked to see if it's supported or allowed by the board: machine_run_board_init(

[PATCH v8 1/9] machine: Use error handling when CPU type is checked

2023-11-28 Thread Gavin Shan
QEMU will be terminated if the specified CPU type isn't supported in machine_run_board_init(). The list of supported CPU type names is tracked by mc->valid_cpu_types. The error handling can be used to propagate error messages, to be consistent how the errors are handled for other situations in the

[PATCH v8 6/9] hw/arm/virt: Check CPU type in machine_run_board_init()

2023-11-28 Thread Gavin Shan
Set mc->valid_cpu_types so that the user specified CPU type can be validated in machine_run_board_init(). We needn't to do the check by ourselves. Signed-off-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/arm/virt.c | 62 +++

[PATCH v8 3/9] machine: Improve is_cpu_type_supported()

2023-11-28 Thread Gavin Shan
It's no sense to check the CPU type when mc->valid_cpu_types[0] is NULL. So the check is skipped for this particular case. The constraint has been taken when the error messags are appended. A precise hint for the error message is given when mc->valid_cpu_types[0] is the only valid entry. Besides,

[PATCH v8 4/9] machine: Print CPU model name instead of CPU type

2023-11-28 Thread Gavin Shan
The names of supported CPU models instead of CPU types should be printed when the user specified CPU type isn't supported, to be consistent with the output from '-cpu ?'. Correct the error messages to print CPU model names instead of CPU type names. Signed-off-by: Gavin Shan --- v8: Use g_autofr

[PATCH v8 8/9] hw/arm: Check CPU type in machine_run_board_init()

2023-11-28 Thread Gavin Shan
Set mc->valid_cpu_types so that the user specified CPU type can be validated in machine_run_board_init(). We needn't to do it by ourselves. Signed-off-by: Gavin Shan Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/bananapi_m2u.c | 12 ++-- hw/arm/cubiebo

[PATCH v8 2/9] machine: Introduce helper is_cpu_type_supported()

2023-11-28 Thread Gavin Shan
The logic, to check if the specified CPU type is supported in machine_run_board_init(), is independent enough. Factor it out into helper is_cpu_type_supported(). machine_run_board_init() looks a bit clean with this. Since we're here, @machine_class is renamed to @mc to avoid multiple line spanning

[PATCH v8 5/9] hw/arm/virt: Hide host CPU model for tcg

2023-11-28 Thread Gavin Shan
The 'host' CPU model isn't available until KVM or HVF is enabled. For example, the following error messages are seen when the guest is started with option '-cpu cortex-a8' on tcg after the next commit is applied to check the CPU type in machine_run_board_init(). ERROR:../hw/core/machine.c:1423:i

[PATCH v8 9/9] hw/riscv/shakti_c: Check CPU type in machine_run_board_init()

2023-11-28 Thread Gavin Shan
Set mc->valid_cpu_types so that the user specified CPU type can be validated in machine_run_board_init(). We needn't to do it by ourselves. Signed-off-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daudé --- hw/riscv/shakti_c.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-)

[PATCH v8 7/9] hw/arm/sbsa-ref: Check CPU type in machine_run_board_init()

2023-11-28 Thread Gavin Shan
Set mc->valid_cpu_types so that the user specified CPU type can be validated in machine_run_board_init(). We needn't to do it by ourselves. Signed-off-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Leif Lindholm Reviewed-by: Richard Henderson --- hw/arm/sbsa-ref.c | 36 ++

Re: [PATCH v2 14/14] spapr: nested: Introduce H_GUEST_RUN_VCPU hcall.

2023-11-28 Thread Nicholas Piggin
On Thu Oct 12, 2023 at 8:49 PM AEST, Harsh Prateek Bora wrote: > The H_GUEST_RUN_VCPU hcall is used to start execution of a Guest VCPU. > The Hypervisor will update the state of the Guest VCPU based on the > input buffer, restore the saved Guest VCPU state, and start its execution. > > The Guest VC

Re: [PATCH v1 0/2] A Fixup for "QEMU: CXL mailbox rework and features (Part 1)"

2023-11-28 Thread Hyeonggon Yoo
On Tue, Nov 28, 2023 at 4:31 PM Michael S. Tsirkin wrote: > > On Mon, Nov 27, 2023 at 07:58:28PM +0900, Hyeonggon Yoo wrote: > > Hi, this is a fixup for the recent patch series "QEMU: CXL mailbox rework > > and > > features (Part 1)" [1]. > > > To clarify do you plan v2 of this? Yes, I will send

<    1   2