Re: [PATCH 6/7] schema: Add define for object names

2021-01-07 Thread Peter Krempa
On Wed, Jan 06, 2021 at 21:59:21 +0100, Ján Tomko wrote: > On a Wednesday in 2021, Peter Krempa wrote: > > Objects such as domain, pool, etc re-define the regex for the format. > > Add more generic types for objects with/without a slash which we'll be > > able to reuse also for other objects. > >

Re: [PATCH 6/7] schema: Add define for object names

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: On Wed, Jan 06, 2021 at 21:59:21 +0100, Ján Tomko wrote: On a Wednesday in 2021, Peter Krempa wrote: > Objects such as domain, pool, etc re-define the regex for the format. > Add more generic types for objects with/without a slash which we'll be > able

Re: To start multiple KVM guests from one qcow2 image with transient disk option

2021-01-07 Thread Peter Krempa
On Tue, Jan 05, 2021 at 15:12:55 +0100, Peter Krempa wrote: > On Mon, Jan 04, 2021 at 15:30:19 -0500, Masayoshi Mizuma wrote: > > On Sat, Dec 19, 2020 at 11:30:39PM -0500, Masayoshi Mizuma wrote: [...] > {"execute":"cont"} > > So that is a no-go. Some disk bus-es such as IDE don't support

Re: [PATCH 2/2] qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom

2021-01-07 Thread Han Han
On Thu, Jan 7, 2021 at 5:23 PM Peter Krempa wrote: > Similarly to startup of the VM qemu doesn't like setting throttling for > an empty drive. Just skip it since we do the correct thing once new > media is inserted. > > Resolves: https://gitlab.com/libvirt/libvirt/-/issues/117 > Signed-off-by:

Re: [libvirt PATCH 0/2] Two small LXC veth creation bugs

2021-01-07 Thread Michal Privoznik
On 1/7/21 12:55 AM, Laine Stump wrote: Laine Stump (2): lxc: remove unnecessary call to virNetDevReserveName() lxc: eliminate leaked and dangling pointers in virLXCProcessSetupInterfaceTap src/lxc/lxc_process.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-)

Re: [PATCH 02/12] qemuMonitorSetMigrationCapabilities: Take double pointer for @caps

2021-01-07 Thread Michal Privoznik
On 1/6/21 3:03 PM, Peter Krempa wrote: This allows simplification of the callers. Signed-off-by: Peter Krempa --- src/qemu/qemu_migration_params.c | 13 - src/qemu/qemu_monitor.c | 11 +++ src/qemu/qemu_monitor.h | 2 +- src/qemu/qemu_monitor_json.c

Re: [PATCH 01/12] qemuMonitorJSONSetMigrationParams: Take double pointer for @params

2021-01-07 Thread Michal Privoznik
On 1/6/21 3:03 PM, Peter Krempa wrote: This allows simplification of the caller as well as will enable a later refactor of qemuMonitorJSONMakeCommandInternal. Signed-off-by: Peter Krempa --- src/qemu/qemu_migration_params.c | 9 +++-- src/qemu/qemu_monitor.c | 11 +++

Re: [PATCH 03/12] qemuMonitorJSONSetMigrationCapabilities: Refactor cleanup

2021-01-07 Thread Michal Privoznik
On 1/6/21 3:03 PM, Peter Krempa wrote: Use automatic memory freeing and remove the 'cleanup' label and 'ret' variable. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor_json.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git

Re: [PATCH 00/12 RESEND] qemu: Preparation for 'object-add' qapification

2021-01-07 Thread Michal Privoznik
On 1/6/21 3:03 PM, Peter Krempa wrote: This is a resend of the patches from: https://www.redhat.com/archives/libvir-list/2020-November/msg01625.html which can be justified without the rest of the series. This series cleans up some monitor code and few related bits to testing. The reset of the

Re: [PATCH v3 1/4] src: adopt to VIR_DRV_SUPPORTS_FEATURE return -1

2021-01-07 Thread John Ferlan
On 12/18/20 1:56 AM, Nikolay Shirokovskiy wrote: > Otherwise in some places we can mistakenly report 'unsupported' error instead > of root cause. So let's handle root cause explicitly from the macro. > > Signed-off-by: Nikolay Shirokovskiy > --- > src/libvirt-domain.c | 511 >

Re: [libvirt PATCH] util: validate pcie_cap_pos != 0 in virDeviceHasPCIExpressLink()

2021-01-07 Thread Michal Privoznik
On 1/7/21 12:51 AM, Laine Stump wrote: virDeviceHasPCIExpressLink() wasn't checking that pcie_cap_pos was valid before attempting to use it, which could lead to reading the byte at offset 0+PCI_CAP_ID_EXP instead of [valid offset]+PCI_CAP_ID_EXP. In particular, this could happen for "integrated"

Re: [PATCH 0/2] qemuDomainSetBlockIoTune: Fix for empty cdrom

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: See 2/2 Peter Krempa (2): qemuDomainSetBlockIoTune: Remove old uninformative comment qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom src/qemu/qemu_driver.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-)

Re: [PATCH v3 1/4] src: adopt to VIR_DRV_SUPPORTS_FEATURE return -1

2021-01-07 Thread Michal Privoznik
On 1/7/21 12:53 PM, John Ferlan wrote: On 12/18/20 1:56 AM, Nikolay Shirokovskiy wrote: Otherwise in some places we can mistakenly report 'unsupported' error instead of root cause. So let's handle root cause explicitly from the macro. Signed-off-by: Nikolay Shirokovskiy ---

[PATCH 1/2] qemuDomainSetBlockIoTune: Remove old uninformative comment

2021-01-07 Thread Peter Krempa
Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 26c6e9b2e1..1283e61785 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -16301,9 +16301,6 @@

[PATCH 2/2] qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom

2021-01-07 Thread Peter Krempa
Similarly to startup of the VM qemu doesn't like setting throttling for an empty drive. Just skip it since we do the correct thing once new media is inserted. Resolves: https://gitlab.com/libvirt/libvirt/-/issues/117 Signed-off-by: Peter Krempa --- CC: Han Han Please test this commit since you

[PATCH 0/2] qemuDomainSetBlockIoTune: Fix for empty cdrom

2021-01-07 Thread Peter Krempa
See 2/2 Peter Krempa (2): qemuDomainSetBlockIoTune: Remove old uninformative comment qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom src/qemu/qemu_driver.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) -- 2.29.2

Re: [libvirt][PATCH v3 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2021-01-07 Thread Han Han
On Wed, Jan 6, 2021 at 3:17 PM Luyao Zhong wrote: > Reviewed-by: Daniel Henrique Barboza > Signed-off-by: Luyao Zhong > --- > include/libvirt/libvirt-domain.h | 1 + > src/conf/numa_conf.c | 9 + > src/qemu/qemu_command.c | 6

Re: [libvirt PATCH 13/17] util: extract virStorageFile code into storage_file

2021-01-07 Thread Pavel Hrdina
On Mon, Jan 04, 2021 at 05:43:32PM +0100, Peter Krempa wrote: > On Mon, Dec 14, 2020 at 16:55:33 +0100, Pavel Hrdina wrote: > > Up until now we had a runtime code and XML related code in the same > > source file inside util directory. > > > > This patch takes the runtime part and extracts it into

Re: [libvirt PATCH 13/17] util: extract virStorageFile code into storage_file

2021-01-07 Thread Peter Krempa
On Thu, Jan 07, 2021 at 14:17:04 +0100, Pavel Hrdina wrote: > On Mon, Jan 04, 2021 at 05:43:32PM +0100, Peter Krempa wrote: > > On Mon, Dec 14, 2020 at 16:55:33 +0100, Pavel Hrdina wrote: [...] > Thanks for the explanation for what the functions are used but it > doesn't make it clear to me

[PATCH] qemuMonitorFdsetsFree: Don't leak @set->fds

2021-01-07 Thread Michal Privoznik
The @fds member of qemuMonitorFdsetInfo struct is an array and as such, it's allocated in qemuMonitorJSONQueryFdsetsParse() but not freed in qemuMonitorFdsetsFree(). Fixes: b8998cc670f7b1b11a83276050e49dce7efba333 Signed-off-by: Michal Privoznik --- src/qemu/qemu_monitor.c | 2 ++ 1 file

Re: [PATCH] network: Introduce mutex for bridge name generation

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Laine Stump wrote: On 1/7/21 10:09 AM, Michal Privoznik wrote: When defining/creating a network the bridge name may be filled in automatically by libvirt (if none provided in the input XML or the one provided is a pattern, e.g. "virbr%d"). During the bridge name

Re: [libvirt PATCH 1/2] hostdev: Update mdev pointer reference after checking device type

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Erik Skultety wrote: We set the pointer to some garbage packed structure data without knowing whether it actually we were handling the type of device we expected to be handling. On its own, this was harmless, because we'd never use the pointer as we'd skip the device if it

Re: [PATCH 0/5] qemu: Introduce control of qcow2 metadata cache maximum size

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: See patch 3/5 for explanation. Peter Krempa (5): virDomainDiskDefFormatDriver: Rename 'driverBuf' to 'attrBuf' virDomainSnapshotDiskDefFormat: Use virXMLFormatElement conf: Introduce subelement of conf: snapshot: Add support for qemu: Implement

Re: [PATCH 3/5] conf: Introduce subelement of

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: In certain specific cases it might be beneficial to be able to control the metadata caching of storage image format drivers of a hypervisor. Introduce XML machinery to set the maximum size of the metadata cache which will be used by qemu's qcow2

Re: [PATCH] docs/system: Remove deprecated 'fulong2e' machine alias

2021-01-07 Thread Philippe Mathieu-Daudé
On 1/6/21 7:46 PM, Philippe Mathieu-Daudé wrote: > The 'fulong2e' machine alias has been marked as deprecated since > QEMU v5.1 (commit c3a09ff68dd, the machine is renamed 'fuloong2e'). > Time to remove it now. > > Signed-off-by: Philippe Mathieu-Daudé > --- > docs/system/deprecated.rst |

Re: [PATCH 2/2] rpm: Drop unnecessary libiscsi runtime dependency

2021-01-07 Thread Neal Gompa
On Thu, Jan 7, 2021 at 12:38 PM Jiri Denemark wrote: > > On Thu, Jan 07, 2021 at 09:58:09 -0500, Neal Gompa wrote: > > This is automatically picked up by the dependency generator, so > > there's no reason to have this here. > > > > Signed-off-by: Neal Gompa > > --- > > libvirt.spec.in | 1 - > >

Re: [libvirt PATCH 2/2] hostdev: mdev: Lookup mdevs by sysfs path rather than mdev struct

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Erik Skultety wrote: The lookup didn't do anything apart from comparing the sysfs paths anyway since that's what makes each mdev unique. The most ridiculous usage of the old logic was in virHostdevReAttachMediatedDevices where in order to drop an mdev hostdev from the list

Re: [PATCH 3/5] conf: Introduce subelement of

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: In certain specific cases it might be beneficial to be able to control the metadata caching of storage image format drivers of a hypervisor. Introduce XML machinery to set the maximum size of the metadata cache which will be used by qemu's qcow2

Re: [PATCH 5/5] qemu: Implement '' control for qcow2

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: qemu's qcow2 driver allows control of the metadata cache of qcow2 driver by the 'cache-size' property. Wire it up to the recently introduced elements. Signed-off-by: Peter Krempa --- src/qemu/qemu_block.c | 11

[PULL 17/66] target/mips/mips-defs: Rename ISA_MIPS32R5 as ISA_MIPS_R5

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS ISA release 5 is common to 32/64-bit CPUs. To avoid holes in the insn_flags type, update the definition with the next available bit. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-15-f4...@amsat.org> ---

[PULL 18/66] target/mips/mips-defs: Rename ISA_MIPS32R6 as ISA_MIPS_R6

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS ISA release 6 is common to 32/64-bit CPUs. To avoid holes in the insn_flags type, update the definition with the next available bit. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-16-f4...@amsat.org> --- target/mips/internal.h

[PULL 15/66] target/mips/mips-defs: Rename ISA_MIPS32R2 as ISA_MIPS_R2

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS ISA release 2 is common to 32/64-bit CPUs. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-13-f4...@amsat.org> --- target/mips/internal.h | 2 +- target/mips/mips-defs.h| 4 +- linux-user/mips/cpu_loop.c | 2 +-

[PULL 12/66] target/mips/mips-defs: Use ISA_MIPS32R5 definition to check Release 5

2021-01-07 Thread Philippe Mathieu-Daudé
Use the single ISA_MIPS32R5 definition to check if the Release 5 ISA is supported, whether the CPU support 32/64-bit. For now we keep '32' in the definition name, we will rename it as ISA_MIPS_R5 in few commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id:

[PULL 13/66] target/mips/mips-defs: Use ISA_MIPS32R6 definition to check Release 6

2021-01-07 Thread Philippe Mathieu-Daudé
Use the single ISA_MIPS32R6 definition to check if the Release 6 ISA is supported, whether the CPU support 32/64-bit. For now we keep '32' in the definition name, we will rename it as ISA_MIPS_R6 in few commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id:

[PULL 14/66] target/mips/mips-defs: Rename ISA_MIPS32 as ISA_MIPS_R1

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS ISA release '1' is common to 32/64-bit CPUs. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-12-f4...@amsat.org> --- target/mips/internal.h | 2 +- target/mips/mips-defs.h | 4 +-- target/mips/translate.c | 54

[PULL 26/66] target/mips: Move mmu_init() functions to tlb_helper.c

2021-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201206233949.3783184-15-f4...@amsat.org> --- target/mips/internal.h | 1 + target/mips/tlb_helper.c | 46 ++ target/mips/translate_init.c.inc | 48

[PULL 22/66] target/mips: Remove consecutive CONFIG_USER_ONLY ifdefs

2021-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-5-f4...@amsat.org> --- target/mips/helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/mips/helper.c b/target/mips/helper.c index 92bd3fb8550..cfb6d82fd33 100644 ---

[PULL 24/66] target/mips: Rename helper.c as tlb_helper.c

2021-01-07 Thread Philippe Mathieu-Daudé
This file contains functions related to TLB management, rename it as 'tlb_helper.c'. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201206233949.3783184-13-f4...@amsat.org> --- target/mips/{helper.c => tlb_helper.c} | 2 +- target/mips/meson.build

[PULL 19/66] target/mips: Inline cpu_state_reset() in mips_cpu_reset()

2021-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-2-f4...@amsat.org> --- target/mips/cpu.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index

[PULL 21/66] target/mips: Add !CONFIG_USER_ONLY comment after #endif

2021-01-07 Thread Philippe Mathieu-Daudé
To help understand ifdef'ry, add comment after #endif. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-4-f4...@amsat.org> --- target/mips/helper.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PULL 25/66] target/mips: Fix code style for checkpatch.pl

2021-01-07 Thread Philippe Mathieu-Daudé
We are going to move this code, fix its style first. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201206233949.3783184-14-f4...@amsat.org> --- target/mips/translate_init.c.inc | 36 1 file changed, 18 insertions(+), 18

[PULL 20/66] target/mips: Extract FPU helpers to 'fpu_helper.h'

2021-01-07 Thread Philippe Mathieu-Daudé
Extract FPU specific helpers from "internal.h" to "fpu_helper.h". Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20201120210844.2625602-2-f4...@amsat.org> --- target/mips/fpu_helper.h | 59 target/mips/internal.h

[PULL 16/66] target/mips/mips-defs: Rename ISA_MIPS32R3 as ISA_MIPS_R3

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS ISA release 3 is common to 32/64-bit CPUs. To avoid holes in the insn_flags type, update the definition with the next available bit. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-14-f4...@amsat.org> ---

[PULL 60/66] target/mips: Convert Rel6 CACHE/PREF opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
CACHE/PREF opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 58/66] target/mips: Convert Rel6 Special2 opcode to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
Special2 opcode have been removed from the Release 6. Add a single decodetree entry for all the opcode class, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() call. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 53/66] target/mips: Use decode_ase_msa() generated from decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
Now that we can decode the MSA ASE with decode_ase_msa(), use it and remove the previous code, now unreachable. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-21-f4...@amsat.org> Tested-by: Jiaxun Yang --- target/mips/translate.h |

[PULL 52/66] target/mips: Introduce decode tree bindings for MSA ASE

2021-01-07 Thread Philippe Mathieu-Daudé
Introduce the 'msa32' decodetree config for the 32-bit MSA ASE. We start by decoding: - the branch instructions, - all instructions based on the MSA opcode. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-20-f4...@amsat.org> Reviewed-by:

[PULL 59/66] target/mips: Convert Rel6 COP1X opcode to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
COP1x opcode has been removed from the Release 6. Add a single decodetree entry for it, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() call. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 61/66] target/mips: Convert Rel6 LWL/LWR/SWL/SWR opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
LWL/LWR/SWL/SWR opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 62/66] target/mips: Convert Rel6 LWLE/LWRE/SWLE/SWRE opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
LWLE/LWRE/SWLE/SWRE (EVA) opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson

[PULL 63/66] target/mips: Convert Rel6 LDL/LDR/SDL/SDR opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
LDL/LDR/SDL/SDR opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 55/66] target/mips: Introduce decodetree helpers for MSA LSA/DLSA opcodes

2021-01-07 Thread Philippe Mathieu-Daudé
Add the LSA opcode to the MSA32 decodetree config, add DLSA to a new config for the MSA64 ASE, and call decode_msa64() in the main decode_opc() loop. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-23-f4...@amsat.org> ---

[PULL 56/66] target/mips: Introduce decodetree helpers for Release6 LSA/DLSA opcodes

2021-01-07 Thread Philippe Mathieu-Daudé
LSA and LDSA opcodes are also available with MIPS release 6. Introduce the decodetree config files and call the decode() helpers in the main decode_opc() loop. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-24-f4...@amsat.org> ---

[PULL 57/66] target/mips: Remove now unreachable LSA/DLSA opcodes code

2021-01-07 Thread Philippe Mathieu-Daudé
Since we switched to decodetree-generated processing, we can remove this now unreachable code. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201208203704.243704-6-f4...@amsat.org> --- target/mips/translate.c | 29 + 1 file

[PULL 54/66] target/mips: Extract LSA/DLSA translation generators

2021-01-07 Thread Philippe Mathieu-Daudé
Extract gen_lsa() from translate.c and explode it as gen_LSA() and gen_DLSA(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-22-f4...@amsat.org> --- target/mips/translate.h| 6 +++ target/mips/translate.c| 35

[PULL 51/66] target/mips: Pass TCGCond argument to MSA gen_check_zero_element()

2021-01-07 Thread Philippe Mathieu-Daudé
Simplify gen_check_zero_element() by passing the TCGCond argument along. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-25-f4...@amsat.org> --- target/mips/msa_translate.c | 10 -- 1 file changed,

[PULL 11/66] target/mips/mips-defs: Use ISA_MIPS32R3 definition to check Release 3

2021-01-07 Thread Philippe Mathieu-Daudé
Use the single ISA_MIPS32R3 definition to check if the Release 3 ISA is supported, whether the CPU support 32/64-bit. For now we keep '32' in the definition name, we will rename it as ISA_MIPS_R3 in few commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id:

[PULL 09/66] target/mips/mips-defs: Use ISA_MIPS32 definition to check Release 1

2021-01-07 Thread Philippe Mathieu-Daudé
Use the single ISA_MIPS32 definition to check if the Release 1 ISA is supported, whether the CPU support 32/64-bit. For now we keep '32' in the definition name, we will rename it as ISA_MIPS_R1 in few commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id:

[PULL 10/66] target/mips/mips-defs: Use ISA_MIPS32R2 definition to check Release 2

2021-01-07 Thread Philippe Mathieu-Daudé
Use the single ISA_MIPS32R2 definition to check if the Release 2 ISA is supported, whether the CPU support 32/64-bit. For now we keep '32' in the definition name, we will rename it as ISA_MIPS_R2 in few commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id:

[PULL 08/66] hw/mips/boston: Check 64-bit support with cpu_type_is_64bit()

2021-01-07 Thread Philippe Mathieu-Daudé
Directly check if the CPU supports 64-bit with the recently added cpu_type_is_64bit() helper (inlined). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210104221154.3127610-6-f4...@amsat.org> --- hw/mips/boston.c | 6 ++ 1 file changed, 2 insertions(+),

[PULL 00/66] MIPS patches for 2021-01-07

2021-01-07 Thread Philippe Mathieu-Daudé
The following changes since commit 470dd6bd360782f5137f7e3376af6a44658eb1d3: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-060121-4' into staging (2021-01-06 22:18:36 +) are available in the Git repository at: https://gitlab.com/philmd/qemu.git tags/mips-20210107

[PULL 03/66] target/mips/addr: Add translation helpers for KSEG1

2021-01-07 Thread Philippe Mathieu-Daudé
From: Jiaxun Yang It's useful for bootloader to do I/O operations. Signed-off-by: Jiaxun Yang Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Huacai Chen Message-Id: <20201215064507.30148-3-jiaxun.y...@flygoat.com> Signed-off-by: Philippe Mathieu-Daudé

[PULL 01/66] target/mips: Add CP0 Config0 register definitions for MIPS3 ISA

2021-01-07 Thread Philippe Mathieu-Daudé
The MIPS3 and MIPS32/64 ISA use different definitions for the CP0 Config0 register. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201201132817.2863301-2-f4...@amsat.org> --- target/mips/cpu.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)

[PULL 05/66] target/mips/mips-defs: Reorder CPU_MIPS5 definition

2021-01-07 Thread Philippe Mathieu-Daudé
Move CPU_MIPS5 after CPU_MIPS4 :) Reviewed-by: Jiaxun Yang Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210104221154.3127610-3-f4...@amsat.org> --- target/mips/mips-defs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PULL 06/66] target/mips/mips-defs: Rename CPU_MIPSxx Release 1 as CPU_MIPSxxR1

2021-01-07 Thread Philippe Mathieu-Daudé
'CPU_MIPS32' and 'CPU_MIPS64' definitions concern CPUs implementing the "Release 1" ISA. Rename it with the 'R1' suffix, as the other CPU definitions do. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210104221154.3127610-4-f4...@amsat.org> ---

[PULL 07/66] target/mips/mips-defs: Introduce CPU_MIPS64 and cpu_type_is_64bit()

2021-01-07 Thread Philippe Mathieu-Daudé
MIPS 64-bit ISA is introduced with MIPS3. Introduce the CPU_MIPS64 definition aliased to the MIPS3 ISA, and the cpu_type_is_64bit() method to check if a CPU supports this ISA (thus is 64-bit). Suggested-by: Jiaxun Yang Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson

[PULL 02/66] target/mips: Replace CP0_Config0 magic values by proper definitions

2021-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201201132817.2863301-3-f4...@amsat.org> --- target/mips/translate_init.c.inc | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/target/mips/translate_init.c.inc

[PULL 04/66] target/mips/mips-defs: Remove USE_HOST_FLOAT_REGS comment

2021-01-07 Thread Philippe Mathieu-Daudé
Remove a comment added 12 years ago but never used (commit b6d96beda3a: "Use temporary registers for the MIPS FPU emulation"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210104221154.3127610-2-f4...@amsat.org> --- target/mips/mips-defs.h | 6 -- 1

[PULL 48/66] target/mips: Extract MSA helper definitions

2021-01-07 Thread Philippe Mathieu-Daudé
Keep all MSA-related code altogether. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20201120210844.2625602-4-f4...@amsat.org> Tested-by: Jiaxun Yang --- target/mips/helper.h | 436 +- target/mips/msa_helper.h.inc |

[PULL 49/66] target/mips: Declare gen_msa/_branch() in 'translate.h'

2021-01-07 Thread Philippe Mathieu-Daudé
Make gen_msa() and gen_msa_branch() public declarations so we can keep calling them once extracted from the big translate.c in the next commit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201215225757.764263-18-f4...@amsat.org> Tested-by: Jiaxun Yang ---

[PULL 45/66] target/mips: Explode gen_msa_branch() as gen_msa_BxZ_V/BxZ()

2021-01-07 Thread Philippe Mathieu-Daudé
In preparation of using the decodetree script, explode gen_msa_branch() as following: - OPC_BZ_V -> BxZ_V(EQ) - OPC_BNZ_V -> BxZ_V(NE) - OPC_BZ_[BHWD] -> BxZ(false) - OPC_BNZ_[BHWD]-> BxZ(true) Reviewed-by: Jiaxun Yang Reviewed-by: Richard Henderson

[PULL 46/66] target/mips: Move msa_reset() to msa_helper.c

2021-01-07 Thread Philippe Mathieu-Daudé
translate_init.c.inc mostly contains CPU definitions. msa_reset() doesn't belong here, move it with the MSA helpers. One comment style is updated to avoid checkpatch.pl warning. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 47/66] target/mips: Extract MSA helpers from op_helper.c

2021-01-07 Thread Philippe Mathieu-Daudé
We have ~400 lines of MSA helpers in the generic op_helper.c, move them with the other helpers in 'msa_helper.c'. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201123204448.3260804-5-f4...@amsat.org> Tested-by: Jiaxun Yang --- target/mips/msa_helper.c |

[PULL 41/66] target/mips: Remove now unused ASE_MSA definition

2021-01-07 Thread Philippe Mathieu-Daudé
We don't use ASE_MSA anymore (replaced by ase_msa_available() checking MSAP bit from CP0_Config3). Remove it. Reviewed-by: Jiaxun Yang Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Tested-by: Jiaxun Yang Message-Id: <20201208003702.4088927-6-f4...@amsat.org> ---

[PULL 43/66] target/mips: Extract msa_translate_init() from mips_tcg_init()

2021-01-07 Thread Philippe Mathieu-Daudé
The msa_wr_d[] registers are only initialized/used by MSA. They are declared static. We want to move them to the new 'msa_translate.c' unit in few commits, without having to declare them global (with extern). Extract first the logic initialization of the MSA registers from the generic

[PULL 44/66] target/mips: Remove CPUMIPSState* argument from gen_msa*() methods

2021-01-07 Thread Philippe Mathieu-Daudé
The gen_msa*() methods don't use the "CPUMIPSState *env" argument. Remove it to simplify. Reviewed-by: Jiaxun Yang Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Tested-by: Jiaxun Yang Message-Id: <20201208003702.4088927-9-f4...@amsat.org> --- target/mips/translate.c |

[PULL 40/66] target/mips: Simplify MSA TCG logic

2021-01-07 Thread Philippe Mathieu-Daudé
Only decode MSA opcodes if MSA is present (implemented). Now than check_msa_access() will only be called if MSA is present, the only way to have MIPS_HFLAG_MSA unset is if MSA is disabled (bit CP0C5_MSAEn cleared, see previous commit). Therefore we can remove the 'reserved instruction' exception.

[PULL 42/66] target/mips: Alias MSA vector registers on FPU scalar registers

2021-01-07 Thread Philippe Mathieu-Daudé
Commits 863f264d10f ("add msa_reset(), global msa register") and cb269f273fd ("fix multiple TCG registers covering same data") removed the FPU scalar registers and replaced them by aliases to the MSA vector registers. It is not very clear to have FPU registers displayed with MSA register names,

[PULL 64/66] target/mips: Convert Rel6 LLD/SCD opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
LLD/SCD opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 65/66] target/mips: Convert Rel6 LL/SC opcodes to decodetree

2021-01-07 Thread Philippe Mathieu-Daudé
LL/SC opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 66/66] docs/system: Remove deprecated 'fulong2e' machine alias

2021-01-07 Thread Philippe Mathieu-Daudé
The 'fulong2e' machine alias has been marked as deprecated since QEMU v5.1 (commit c3a09ff68dd, the machine is renamed 'fuloong2e'). Time to remove it now. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Huacai Chen Reviewed-by: Thomas Huth Message-Id:

Re: [PATCH] network: Introduce mutex for bridge name generation

2021-01-07 Thread Daniel Henrique Barboza
On 1/7/21 5:22 PM, Ján Tomko wrote: On a Thursday in 2021, Laine Stump wrote: On 1/7/21 10:09 AM, Michal Privoznik wrote: When defining/creating a network the bridge name may be filled in automatically by libvirt (if none provided in the input XML or the one provided is a pattern, e.g.

Re: [PULL 00/66] MIPS patches for 2021-01-07

2021-01-07 Thread Philippe Mathieu-Daudé
the Git repository at: > > https://gitlab.com/philmd/qemu.git tags/mips-20210107 > > for you to fetch changes up to f97d339d612b86d8d336a11f01719a10893d6707: > > docs/system: Remove deprecated 'fulong2e' machine

Re: [libvirt PATCH 7/7] cpu_map: Define and enable Snowridge model

2021-01-07 Thread Jiri Denemark
On Wed, Jan 06, 2021 at 11:05:11 +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/cpu_map/index.xml | 1 + > src/cpu_map/meson.build | 1 + > src/cpu_map/x86_Snowridge.xml | 71 +++ >

Re: [libvirt PATCH 3/7] cpu_map: Add support for core-capability CPU feature

2021-01-07 Thread Jiri Denemark
On Wed, Jan 06, 2021 at 11:05:07 +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/cpu_map/x86_features.xml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml > index b0bf22d916..a5a987deba 100644 > ---

Re: [libvirt PATCH 0/7] Define and enable Snowridge CPU model

2021-01-07 Thread Jiri Denemark
On Wed, Jan 06, 2021 at 11:05:04 +0100, Tim Wiederhake wrote: > This series adds and enables the Snowridge CPU model. > > Note that qemu currently uses the same model ID for Icelake-Server [1] > and Snowridge [2]. The correct ID for Icelake is 106 [3], a mistake > that has been fixed in libvirt

[libvirt PATCH 1/3] cpu-gather: Remove redundant "processor" from CPU data file names

2021-01-07 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- tests/cputestdata/cpu-gather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cputestdata/cpu-gather.py b/tests/cputestdata/cpu-gather.py index f679fb9066..b8c1f23c82 100755 --- a/tests/cputestdata/cpu-gather.py +++

[libvirt PATCH 0/3] Small tweaks to cpu-gather.py script

2021-01-07 Thread Jiri Denemark
Jiri Denemark (3): cpu-gather: Remove redundant "processor" from CPU data file names cpu_map: Suggest better command for updating test data files cpu-gather: Rename the script as cpu-data.py src/cpu_map/x86_features.xml | 5 ++--- tests/cputestdata/{cpu-gather.py =>

[libvirt PATCH 2/3] cpu_map: Suggest better command for updating test data files

2021-01-07 Thread Jiri Denemark
cpu-cpuid.py was merged into cpu-gather.py and the script can handle multiple files so there's no need for a loop around it. Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cpu_map/x86_features.xml

[libvirt PATCH 3/3] cpu-gather: Rename the script as cpu-data.py

2021-01-07 Thread Jiri Denemark
It is now doing way more than gathering the CPU data from a host as the other scripts were merged in it. Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml | 2 +- tests/cputestdata/{cpu-gather.py => cpu-data.py} | 2 +- 2 files changed, 2 insertions(+), 2

Re: [PULL 00/66] MIPS patches for 2021-01-07

2021-01-07 Thread no-reply
Patchew URL: https://patchew.org/QEMU/2021010753.20382-1-f4...@amsat.org/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 2021010753.20382-1-f4...@amsat.org Subject: [PULL 00/66] MIPS patches for 2021-01-07 ===

Re: To start multiple KVM guests from one qcow2 image with transient disk option

2021-01-07 Thread Masayoshi Mizuma
On Thu, Jan 07, 2021 at 09:05:42AM +0100, Peter Krempa wrote: > On Tue, Jan 05, 2021 at 15:12:55 +0100, Peter Krempa wrote: > > On Mon, Jan 04, 2021 at 15:30:19 -0500, Masayoshi Mizuma wrote: > > > On Sat, Dec 19, 2020 at 11:30:39PM -0500, Masayoshi Mizuma wrote: > > [...] > > >

[PULL 31/66] target/mips: Replace gen_exception_end(EXCP_RI) by gen_rsvd_instruction

2021-01-07 Thread Philippe Mathieu-Daudé
gen_reserved_instruction() is easier to read than generate_exception_end(ctx, EXCP_RI), replace it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-12-f4...@amsat.org> --- target/mips/translate.h | 1 + target/mips/translate.c | 729

[PULL 32/66] target/mips: Declare generic FPU functions in 'translate.h'

2021-01-07 Thread Philippe Mathieu-Daudé
Some FPU translation functions / registers can be used by ISA / ASE / extensions out of the big translate.c file. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-15-f4...@amsat.org> --- target/mips/translate.h | 7 +++

[PULL 33/66] target/mips: Extract FPU specific definitions to translate.h

2021-01-07 Thread Philippe Mathieu-Daudé
Extract FPU specific definitions that can be used by ISA / ASE / extensions to translate.h header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-16-f4...@amsat.org> --- target/mips/translate.h | 71

[PULL 23/66] target/mips: Move common helpers from helper.c to cpu.c

2021-01-07 Thread Philippe Mathieu-Daudé
The rest of helper.c is TLB related. Extract the non TLB specific functions to cpu.c, so we can rename helper.c as tlb_helper.c in the next commit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-6-f4...@amsat.org> ---

[PULL 27/66] target/mips: Rename translate_init.c as cpu-defs.c

2021-01-07 Thread Philippe Mathieu-Daudé
This file is not TCG specific, contains CPU definitions and is consumed by cpu.c. Rename it as such. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-10-f4...@amsat.org> --- target/mips/cpu.c| 2 +-

[PULL 28/66] target/mips/translate: Extract DisasContext structure

2021-01-07 Thread Philippe Mathieu-Daudé
Extract DisasContext to a new 'translate.h' header so different translation files (ISA, ASE, extensions) can use it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201207235539.4070364-2-f4...@amsat.org> --- target/mips/translate.h | 50

[PULL 39/66] target/mips: Use CP0_Config3 to set MIPS_HFLAG_MSA

2021-01-07 Thread Philippe Mathieu-Daudé
MSA presence is expressed by the MSAP bit of CP0_Config3. We don't need to check anything else. Reviewed-by: Jiaxun Yang Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Tested-by: Jiaxun Yang Message-Id: <20201208003702.4088927-4-f4...@amsat.org> ---

[PULL 29/66] target/mips/translate: Add declarations for generic code

2021-01-07 Thread Philippe Mathieu-Daudé
Some CPU translation functions / registers / macros and definitions can be used by ISA / ASE / extensions out of the big translate.c file. Declare them in "translate.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201207235539.4070364-3-f4...@amsat.org>

  1   2   >