Re: [PATCH 10/28] qapi: Rework name checking in preparation of stricter checking

2021-03-23 Thread Markus Armbruster
John Snow writes: > On 3/23/21 5:40 AM, Markus Armbruster wrote: >> Naming rules differ for the various kinds of names. To prepare >> enforcing them, define functions to check them: check_name_upper(), >> check_name_lower(), and check_name_camel(). For now, these merely >> wrap around

Re: [PATCH 09/28] qapi: Lift enum-specific code out of check_name_str()

2021-03-23 Thread Markus Armbruster
John Snow writes: > On 3/23/21 5:40 AM, Markus Armbruster wrote: >> check_name_str() masks leading digits when passed enum_member=True. >> Only check_enum() does. Lift the masking into check_enum(). >> Signed-off-by: Markus Armbruster >> --- >> scripts/qapi/expr.py | 23

Re: [RFC PATCH 10/13] blobs: Only install s390x firmwares if s390x system target is built

2021-03-23 Thread Thomas Huth
On 23/03/2021 16.51, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- Cc: Cornelia Huck Cc: Thomas Huth Cc: qemu-s3...@nongnu.org --- meson.build | 2 ++ pc-bios/meson.build | 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] tests/migration: fix parameter of auto-converge migration

2021-03-23 Thread Thomas Huth
On 23/03/2021 20.40, Dr. David Alan Gilbert wrote: * huang...@chinatelecom.cn (huang...@chinatelecom.cn) wrote: From: Hyman Huang(黄勇) when execute the following test command: $ ./guestperf-batch.py --auto-converge \ --auto-converge-step {percent} ... test aborts and error message be

Re: [PATCH qemu] spapr: Fix typo in the patb_entry comment

2021-03-23 Thread Alexey Kardashevskiy
On 22/03/2021 16:44, David Gibson wrote: On Thu, Feb 25, 2021 at 02:23:35PM +1100, Alexey Kardashevskiy wrote: There is no H_REGISTER_PROCESS_TABLE, it is H_REGISTER_PROC_TBL handler for which is still called h_register_process_table() though. Signed-off-by: Alexey Kardashevskiy Applied

Re: [PATCH v3 3/3] spapr: nvdimm: Enable sync-dax device property for nvdimm

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 09:47:55AM -0400, Shivaprasad G Bhat wrote: > The patch adds the 'sync-dax' property to the nvdimm device. > > When the sync-dax is 'off', the device tree property > "hcall-flush-required" is added to the nvdimm node which makes the > guest to issue H_SCM_FLUSH hcalls to

Re: [PATCH v3 2/3] spapr: nvdimm: Implement H_SCM_FLUSH hcall

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 09:47:38AM -0400, Shivaprasad G Bhat wrote: > The patch adds support for the SCM flush hcall for the nvdimm devices. > To be available for exploitation by guest through the next patch. > > The hcall expects the semantics such that the flush to return > with H_BUSY when the

Re: [PATCH v3 1/3] spapr: nvdimm: Forward declare and move the definitions

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 09:47:23AM -0400, Shivaprasad G Bhat wrote: > The subsequent patches add definitions which tend to > get the compilation to cyclic dependency. So, prepare > with forward declarations, move the defitions and clean up. > > Signed-off-by: Shivaprasad G Bhat > --- >

Re: [PATCH v5 00/10] KVM: Dirty ring support (QEMU part)

2021-03-23 Thread Keqian Zhu
Hi Peter, On 2021/3/23 22:34, Peter Xu wrote: > Keqian, > > On Tue, Mar 23, 2021 at 02:40:43PM +0800, Keqian Zhu wrote: The second question is that you observed longer migration time (55s->73s) when guest has 24G ram and dirty rate is 800M/s. I am not clear about the reason. As

Re: [PATCH V13 2/9] meson.build: Re-enable KVM support for MIPS

2021-03-23 Thread YunQiang Su
Jiaxun Yang 于2021年3月24日周三 上午9:29写道: > > > > On Tue, Mar 23, 2021, at 9:56 PM, Philippe Mathieu-Daudé wrote: > > Hi Huacai, > > > > We are going to tag QEMU v6.0-rc0 today. > > > > I only have access to a 64-bit MIPS in little-endian to > > test KVM. > > > > Can you test the other configurations

Re: [PATCH v4 07/17] target/ppc: Disconnect hflags from MSR

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 11:04:03AM -0600, Richard Henderson wrote: > On 3/22/21 5:54 PM, David Gibson wrote: > > On Mon, Mar 22, 2021 at 10:55:46AM -0600, Richard Henderson wrote: > > > On 3/21/21 9:52 PM, David Gibson wrote: > > > > > +/* > > > > > + * Bits for env->hflags. > > > > > + * > > > >

Re: [PATCH v10 6/7] hw/pci-host: Add emulation of Marvell MV64361 PPC system controller

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 02:31:07PM +0100, BALATON Zoltan wrote: > On Tue, 23 Mar 2021, David Gibson wrote: > > On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote: [snip] > > > +static void setup_mem_windows(MV64361State *s, uint32_t val) > > > +{ > > > +MV64361PCIState *p; > > > +

[PULL 1/5] tcg: Do not set guard pages on the rx portion of code_gen_buffer

2021-03-23 Thread Richard Henderson
The rw portion of the buffer is the only one in which overruns can be generated. Allow the rx portion to be more completely covered by huge pages. Signed-off-by: Richard Henderson Tested-by: Roman Bolshakov Reviewed-by: Roman Bolshakov Message-Id:

Re: [PATCH v10 7/7] hw/ppc: Add emulation of Genesi/bPlan Pegasos II

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 02:01:27PM +0100, BALATON Zoltan wrote: > On Tue, 23 Mar 2021, David Gibson wrote: > > On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote: > > > Add new machine called pegasos2 emulating the Genesi/bPlan Pegasos II, > > > a PowerPC board based on the Marvell

[PULL 2/5] tcg: Workaround macOS 11.2 mprotect bug

2021-03-23 Thread Richard Henderson
There's a change in mprotect() behaviour [1] in the latest macOS on M1 and it's not yet clear if it's going to be fixed by Apple. As a short-term fix, ignore failures setting up the guard pages. [1] https://gist.github.com/hikalium/75ae822466ee4da13cbbe486498a191f Signed-off-by: Richard

Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 02:10:22PM -0300, Daniel Henrique Barboza wrote: > > > On 3/22/21 10:12 PM, David Gibson wrote: > > On Fri, Mar 12, 2021 at 05:07:36PM -0300, Daniel Henrique Barboza wrote: > > > Hi, > > > > > > This series adds 2 new QAPI events, DEVICE_NOT_DELETED and > > >

[PULL 0/5] tcg patch queue for 6.0

2021-03-23 Thread Richard Henderson
The following changes since commit 266469947161aa10b1d36843580d369d5aa38589: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-03-23' into staging (2021-03-23 22:28:58 +) are available in the Git repository at: https://github.com/rth7680/qemu.git tags/pull-tcg-20210323

[PULL 5/5] exec: Build page-vary-common.c with -fno-lto

2021-03-23 Thread Richard Henderson
In bbc17caf81f, we used an alias attribute to allow target_page to be declared const, and yet be initialized late. This fails when using LTO with several versions of gcc. The compiler looks through the alias and decides that the const variable is statically initialized to zero, then propagates

[PULL 4/5] exec: Extract 'page-vary.h' header

2021-03-23 Thread Richard Henderson
In the next commit we will extract the generic code out of page-vary.c, only keeping the target specific code. Both files will use the same TargetPageBits structure, so make its declaration in a shared header. As the common header can not use target specific types, use a uint64_t to hold the page

[PULL 3/5] exec: Rename exec-vary.c as page-vary.c

2021-03-23 Thread Richard Henderson
exec-vary.c is about variable page size handling, rename it page-vary.c. Currently this file is target specific (built once for each target), comment this. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210322112427.4045204-2-f4...@amsat.org> [rth: Update MAINTAINERS] Signed-off-by:

Re: [PATCH v5 10/10] target/ppc: Validate hflags with CONFIG_DEBUG_TCG

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:40PM -0600, Richard Henderson wrote: > Verify that hflags was updated correctly whenever we change > cpu state that is used by hflags. > > Signed-off-by: Richard Henderson Applied to ppc-for-6.0, thanks. > --- > target/ppc/cpu.h | 5 + >

Re: [PATCH v5 07/10] target/ppc: Remove MSR_SA and MSR_AP from hflags

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:37PM -0600, Richard Henderson wrote: > Nothing within the translator -- or anywhere else for that > matter -- checks MSR_SA or MSR_AP on the 602. This may be > a mistake. However, for the moment, we need not record these > bits in hflags. And frankly, even if it's

Re: [PATCH v5 08/10] target/ppc: Remove env->immu_idx and env->dmmu_idx

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:38PM -0600, Richard Henderson wrote: > We weren't recording MSR_GS in hflags, which means that BookE > memory accesses were essentially random vs Guest State. > > Instead of adding this bit directly, record the completed mmu > indexes instead. This makes it obvious

Re: [PATCH v5 06/10] target/ppc: Put LPCR[GTSE] in hflags

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:36PM -0600, Richard Henderson wrote: > Because this bit was not in hflags, the privilege check > for tlb instructions was essentially random. > Recompute hflags when storing to LPCR. > > Reviewed-by: David Gibson > Signed-off-by: Richard Henderson Applied to

Re: [PATCH v5 04/10] target/ppc: Put dbcr0 single-step bits into hflags

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:34PM -0600, Richard Henderson wrote: > Because these bits were not in hflags, the code generated > for single-stepping on BookE was essentially random. > Recompute hflags when storing to dbcr0. > > Reviewed-by: David Gibson > Signed-off-by: Richard Henderson

Re: [PATCH v5 09/10] linux-user/ppc: Fix msr updates for signal handling

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:39PM -0600, Richard Henderson wrote: > In save_user_regs, there are two bugs where we OR in a bit number > instead of the bit, clobbering the low bits of MSR. However: > > The MSR_VR and MSR_SPE bits control the availability of the insns. > If the bits were not

Re: [PATCH v5 01/10] target/ppc: Extract post_load_update_msr

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:31PM -0600, Richard Henderson wrote: > Extract post_load_update_msr to share between cpu_load_old > and cpu_post_load in updating the msr. > > Suggested-by: Cédric Le Goater > Signed-off-by: Richard Henderson Applied to ppc-for-6.0. > --- > target/ppc/machine.c

Re: [PATCH v5 05/10] target/ppc: Create helper_scv

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:35PM -0600, Richard Henderson wrote: > Perform the test against FSCR_SCV at runtime, in the helper. > > This means we can remove the incorrect set against SCV in > ppc_tr_init_disas_context and do not need to add an HFLAGS bit. > > Signed-off-by: Richard Henderson

Re: [PATCH v5 02/10] target/ppc: Disconnect hflags from MSR

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:32PM -0600, Richard Henderson wrote: > Copying flags directly from msr has drawbacks: (1) msr bits > mean different things per cpu, (2) msr has 64 bits on 64 cpus > while tb->flags has only 32 bits. > > Create a enum to define these bits. Document the origin of each

Re: [PATCH v5 03/10] target/ppc: Reduce env->hflags to uint32_t

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 12:43:33PM -0600, Richard Henderson wrote: > It will be stored in tb->flags, which is also uint32_t, > so let's use the correct size. > > Reviewed-by: Cédric Le Goater > Reviewed-by: David Gibson > Signed-off-by: Richard Henderson Applied to ppc-for-6.0. > --- >

Re: [PATCH V13 2/9] meson.build: Re-enable KVM support for MIPS

2021-03-23 Thread Jiaxun Yang
On Tue, Mar 23, 2021, at 9:56 PM, Philippe Mathieu-Daudé wrote: > Hi Huacai, > > We are going to tag QEMU v6.0-rc0 today. > > I only have access to a 64-bit MIPS in little-endian to > test KVM. > > Can you test the other configurations please? > - 32-bit BE > - 32-bit LE > - 64-bit BE +syq

Re: [PATCH v1] tests/migration: introduce multifd into guestperf

2021-03-23 Thread Hyman Huang
cc th...@redhat.com and berra...@redhat.com Please review, thanks 在 2021/3/20 1:04, huang...@chinatelecom.cn 写道: From: Hyman Guestperf tool does not cover the multifd-enabled migration currently, it is worth supporting so that developers can analysis the migration performance with all kinds

[Bug 1921061] [NEW] Corsair iCUE Install Fails, qemu VM Reboots

2021-03-23 Thread Russell Morris
Public bug reported: Hi, I had this working before, but in the latest version of QEMU (built from master), when I try to install Corsair iCUE, and it gets to the driver install point => my Windows 10 VM just reboots! I would be happy to capture logs, but ... what logs exist for an uncontrolled

RE: [PATCH V4 2/7] qapi/net.json: Add L4_Connection definition

2021-03-23 Thread Zhang, Chen
> -Original Message- > From: Markus Armbruster > Sent: Tuesday, March 23, 2021 5:55 PM > To: Zhang, Chen > Cc: Lukas Straub ; Li Zhijian > ; Jason Wang ; qemu- > dev ; Dr. David Alan Gilbert > ; Zhang Chen > Subject: Re: [PATCH V4 2/7] qapi/net.json: Add L4_Connection definition > >

Re: [PULL 00/29] QAPI patches patches for 2021-03-23

2021-03-23 Thread Peter Maydell
On Tue, 23 Mar 2021 at 21:57, Markus Armbruster wrote: > > The following changes since commit 9950da284fa5e2ea9ab57d87e05b693fb60c79ce: > > Merge remote-tracking branch > 'remotes/alistair/tags/pull-riscv-to-apply-20210322-2' into staging > (2021-03-23 15:30:46 +) > > are available in the

Re: [PATCH 5/6] hw/isa/vt82c686: Simplify removing unuseful qemu_allocate_irqs() call

2021-03-23 Thread BALATON Zoltan
On Wed, 24 Mar 2021, Philippe Mathieu-Daudé wrote: Instead of creating an input IRQ with qemu_allocate_irqs() to pass it as output IRQ of the PIC, with its handler simply dispatching into the "intr" output IRQ, simplify by directly connecting the PIC to the "intr" named output. I think I've

[Bug 1920784] Re: qemu-system-ppc64le fails with kvm acceleration

2021-03-23 Thread sadoon albader
The guys on the Fedora side seem to have found the patch to fix this: https://bugzilla.redhat.com/show_bug.cgi?id=1941652#c6 Apparently it will go upstream in Linux 5.11, but earlier versions also need the fix, specifically 5.9 and 5.10 Thank you! ** Bug watch added: Red Hat Bugzilla #1941652

Re: Crashes with qemu-system-ppc64

2021-03-23 Thread Philippe Mathieu-Daudé
On 3/24/21 12:00 AM, Greg Kurz wrote: > Cc'ing David > > On Tue, 23 Mar 2021 17:48:36 +0100 > Thomas Huth wrote: > >> >> In case anyone is interested in fixing those, there are two regressions with >> qemu-system-ppc64 in the current master branch: >> >> $ ./qemu-system-ppc64 -M ppce500

Re: [RFC PATCH 08/13] blobs: Only install blobs if powerpc system targets are built

2021-03-23 Thread David Gibson
On Tue, Mar 23, 2021 at 04:51:27PM +0100, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > Cc: David Gibson > Cc: Greg Kurz > Cc: qemu-...@nongnu.org > Cc: Mark Cave-Ayland > Cc: Hervé Poussineau > Cc: Cédric Le Goater > Cc: BALATON Zoltan > --- > meson.build

Re: [PATCH] Document qemu-img options data_file and data_file_raw

2021-03-23 Thread John Snow
On 3/1/21 12:28 PM, Connor Kuehl wrote: The contents of this patch were initially developed and posted by Han Han[1], however, it appears the original patch was not applied. Since then, the relevant documentation has been moved and adapted to a new format. I've taken most of the original

Re: [PATCH 1/1] iotests: fix 051.out expected output after error text touchups

2021-03-23 Thread John Snow
On 3/18/21 4:09 PM, Connor Kuehl wrote: A patch was recently applied that touched up some error messages that pertained to key names like 'node-name'. The trouble is it only updated tests/qemu-iotests/051.pc.out and not tests/qemu-iotests/051.out as well. Do that now. Fixes: 785ec4b1b9

[PATCH 6/6] hw/isa/piix4: Fix leak removing unuseful qemu_allocate_irqs() call

2021-03-23 Thread Philippe Mathieu-Daudé
We locally create an input IRQ with qemu_allocate_irqs() to pass it as output IRQ of the PIC, but its handler simply dispatch into another of our output IRQ ("intr" output). Simplify by directly connecting the PIC output to our "intr" output. This fixes when using QEMU built with

[PATCH 5/6] hw/isa/vt82c686: Simplify removing unuseful qemu_allocate_irqs() call

2021-03-23 Thread Philippe Mathieu-Daudé
Instead of creating an input IRQ with qemu_allocate_irqs() to pass it as output IRQ of the PIC, with its handler simply dispatching into the "intr" output IRQ, simplify by directly connecting the PIC to the "intr" named output. Fixes: 3dc31cb8490 ("vt82c686: Move creation of ISA devices to the

[PATCH 4/6] hw/isa/vt82c686: Name output IRQ as 'intr'

2021-03-23 Thread Philippe Mathieu-Daudé
Named IRQs are easier to understand in the monitor. Name the single output interrupt as 'intr'. Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/vt82c686.c | 2 +- hw/mips/fuloong2e.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c

[PATCH 2/6] hw/isa/i82378: Simplify removing unuseful qemu_allocate_irqs() call

2021-03-23 Thread Philippe Mathieu-Daudé
When the i82378 model was added in commit a04ff940974 ("prep: Add i82378 PCI-to-ISA bridge emulation") the i8259 model was not yet QOM'ified. This happened later in commit 747c70af78f ("i8259: Convert to qdev"). Instead of creating an input IRQ with qemu_allocate_irqs() to pass it as output IRQ

[PATCH 1/6] hw/isa/i82378: Name output IRQ as 'intr'

2021-03-23 Thread Philippe Mathieu-Daudé
Named IRQs are easier to understand in the monitor. Name the single output interrupt as 'intr'. Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/i82378.c | 2 +- hw/ppc/prep.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index

[PATCH 3/6] hw/isa/i82378: Rename output IRQ variable

2021-03-23 Thread Philippe Mathieu-Daudé
The i82378 has 2 output IRQs: "INT" and "NMI". We do not model the NMI, so simplify I82378State by removing the unused IRQ. To avoid keeping an array of one element, remove the array and rename the variable. Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/i82378.c | 6 +++--- 1 file changed, 3

Re: [PATCH v7 1/8] vt82c686: Implement control of serial port io ranges via config regs

2021-03-23 Thread BALATON Zoltan
On Tue, 23 Mar 2021, Mark Cave-Ayland wrote: On 23/03/2021 12:54, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: In VIA super south bridge the io ranges of superio components (parallel and serial ports and FDC) can be controlled by superio config registers to set their base

[PATCH 0/6] hw/isa: Remove unuseful qemu_allocate_irqs() call

2021-03-23 Thread Philippe Mathieu-Daudé
I started to fix the LeakSanitizer error in piix4_realize(), then looked for similar pattern and found 2 other places. The older is i82378 (historically the first one) which then spread. Philippe Mathieu-Daudé (6): hw/isa/i82378: Name output IRQ as 'intr' hw/isa/i82378: Simplify removing

Re: [RFC PATCH 06/13] blobs: Only install PA-RISC SeaBIOS if hppa system target is built

2021-03-23 Thread Helge Deller
On 3/23/21 4:51 PM, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- Cc: Richard Henderson Cc: Helge Deller Acked-by: Helge Deller --- meson.build | 2 ++ pc-bios/meson.build | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

Re: Crashes with qemu-system-ppc64

2021-03-23 Thread Greg Kurz
Cc'ing David On Tue, 23 Mar 2021 17:48:36 +0100 Thomas Huth wrote: > > In case anyone is interested in fixing those, there are two regressions with > qemu-system-ppc64 in the current master branch: > > $ ./qemu-system-ppc64 -M ppce500 -device macio-oldworld > qemu-system-ppc64:

Re: Crashes with qemu-system-ppc64

2021-03-23 Thread Peter Maydell
On Tue, 23 Mar 2021 at 21:21, Mark Cave-Ayland wrote: > I'm not sure what the right solution is here. In my mind there hasn't really > been any > difference between TYPE_DEVICE and TYPE_SYS_BUS_DEVICE other than the APIs > that > expose the memory regions and IRQs are different, but clearly

Re: [RFC v11 30/55] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled()

2021-03-23 Thread Alex Bennée
Claudio Fontana writes: > After this patch it is possible to build only kvm: > > ./configure --disable-tcg --enable-kvm FWIW at this point we get a different failure than later on: 21:10:25 [alex@aarch64-new:~/l/q/b/disable.tcg] (94e2abe0…)|… + make check-qtest GIT ui/keycodemapdb

Re: [PATCH v2] docs/devel/testing.rst: Fix references to unit tests

2021-03-23 Thread John Snow
On 3/18/21 1:44 PM, Wainer dos Santos Moschetta wrote: With the recent move of the unit tests to tests/unit directory some instructions under the "Unit tests" section became imprecise, which are fixed by this change. Fixes: da668aa15b99 ("tests: Move unit tests into a separate directory")

Re: [PATCH v3 1/1] acpi: Consolidate the handling of OEM ID and OEM Table ID fields

2021-03-23 Thread Marian Postevca
"Michael S. Tsirkin" writes: >> +#include "qemu/cutils.h" >> + >> +#define ACPI_BUILD_APPNAME6 "BOCHS " >> +#define ACPI_BUILD_APPNAME8 "BXPC" > > A single user for each of these now ... drop the defines? > Unfortunately ACPI_BUILD_APPNAME8 is still used in build_header() in aml-build.c,

Re: [PULL 0/7] target-arm queue

2021-03-23 Thread Peter Maydell
o > staging (2021-03-22 18:50:25 +) > > are available in the Git repository at: > > https://git.linaro.org/people/pmaydell/qemu-arm.git > tags/pull-target-arm-20210323 > > for you to fetch changes up to dad90de78e9e9d47cefcbcd30115706b98e6ec87: > >

Re: [PATCH 12/28] qapi: Consistently permit any case in downstream prefixes

2021-03-23 Thread John Snow
On 3/23/21 5:40 AM, Markus Armbruster wrote: We require lowercase __RFQDN_ downstream prefixes only where we require the prefixed name to be lowercase. Don't; permit any case in __RFQDN_ prefixes anywhere. Signed-off-by: Markus Armbruster Reviewed-by: John Snow --- scripts/qapi/expr.py

Re: [PATCH v2 1/3] vt82c686.c: don't raise SCI when PCI_INTERRUPT_PIN isn't setup

2021-03-23 Thread BALATON Zoltan
On Tue, 23 Mar 2021, Philippe Mathieu-Daudé wrote: Hi Isaku, On 3/23/21 6:24 PM, Isaku Yamahata wrote: Without this patch, the following patch will triger clan runtime sanitizer warnings as follows. This patch proactively works around it. I let v582c686.c maintainer address a correct fix as

[PATCH v2 07/10] Acceptance Tests: set up SSH connection by default after boot for LinuxTest

2021-03-23 Thread Cleber Rosa
The LinuxTest specifically targets users that need to interact with Linux guests. So, it makes sense to give a connection by default, and avoid requiring it as boiler-plate code. Signed-off-by: Cleber Rosa --- tests/acceptance/avocado_qemu/__init__.py | 5 -

Re: [PATCH 13/28] qapi: Enforce event naming rules

2021-03-23 Thread John Snow
On 3/23/21 5:40 AM, Markus Armbruster wrote: Event names should be ALL_CAPS with words separated by underscore. Enforce this. The only offenders are in tests/. Fix them. Existing test event-case covers the new error. Signed-off-by: Markus Armbruster --- tests/unit/test-qmp-event.c

[PATCH v2 08/10] tests/acceptance/virtiofs_submounts.py: remove launch_vm()

2021-03-23 Thread Cleber Rosa
The LinuxTest class' launch_and_wait() method now behaves the same way as this test's custom launch_vm(), so let's just use the upper layer (common) method. Signed-off-by: Cleber Rosa --- tests/acceptance/virtiofs_submounts.py | 13 + 1 file changed, 5 insertions(+), 8 deletions(-)

[PATCH v2 04/10] Acceptance Tests: move useful ssh methods to base class

2021-03-23 Thread Cleber Rosa
Both the virtiofs submounts and the linux ssh mips malta tests contains useful methods related to ssh that deserve to be made available to other tests. Let's move them to the base LinuxTest class. The method that helps with setting up an ssh connection will now support both key and password

Re: [PATCH 11/28] qapi: Move uppercase rejection to check_name_lower()

2021-03-23 Thread John Snow
On 3/23/21 5:40 AM, Markus Armbruster wrote: check_name_lower() is the only user of check_name_str() using permit_upper=False. Move the associated code from check_name_str() to check_name_lower(), and drop the parameter. Signed-off-by: Markus Armbruster Reviewed-by: John Snow ---

[PATCH v2 03/10] Python: add utility function for retrieving port redirection

2021-03-23 Thread Cleber Rosa
Slightly different versions for the same utility code are currently present on different locations. This unifies them all, giving preference to the version from virtiofs_submounts.py, because of the last tweaks added to it. While at it, this adds a "qemu.utils" module to host the utility

Re: [PATCH v7 1/8] vt82c686: Implement control of serial port io ranges via config regs

2021-03-23 Thread Mark Cave-Ayland
On 23/03/2021 12:54, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: In VIA super south bridge the io ranges of superio components (parallel and serial ports and FDC) can be controlled by superio config registers to set their base address and enable/disable them. This is not

Re: [PATCH v1 0/3] migration: Fixes to the 'background-snapshot' code

2021-03-23 Thread Peter Xu
On Fri, Mar 19, 2021 at 05:52:46PM +0300, Andrey Gruzdev wrote: > Changes v0->v1: > * Using qemu_real_host_page_size instead of TARGET_PAGE_SIZE for host >page size in ram_block_populate_pages() > * More elegant implementation of ram_block_populate_pages() > > This patch series contains: >

[PATCH v2 00/10] Acceptance Test: introduce base class for Linux based tests

2021-03-23 Thread Cleber Rosa
This introduces a base class for tests that need to interact with a Linux guest. It generalizes the "boot_linux.py" code, already been used by the "virtiofs_submounts.py" and also SSH related code being used by that and "linux_ssh_mips_malta.py". While at it, a number of fixes on hopeful

[PATCH v2 10/10] Acceptance Tests: introduce CPU hotplug test

2021-03-23 Thread Cleber Rosa
Even though there are qtest based tests for hotplugging CPUs (from which this test took some inspiration from), this one adds checks from a Linux guest point of view. It should also serve as an example for tests that follow a similar pattern and need to interact with QEMU (via qmp) and with the

[PATCH v2 05/10] Acceptance Tests: add port redirection for ssh by default

2021-03-23 Thread Cleber Rosa
For users of the LinuxTest class, let's set up the VM with the port redirection for SSH, instead of requiring each test to set the same arguments. Signed-off-by: Cleber Rosa --- tests/acceptance/avocado_qemu/__init__.py | 4 +++- tests/acceptance/virtiofs_submounts.py| 4 2 files

Re: [PATCH 10/28] qapi: Rework name checking in preparation of stricter checking

2021-03-23 Thread John Snow
On 3/23/21 5:40 AM, Markus Armbruster wrote: Naming rules differ for the various kinds of names. To prepare enforcing them, define functions to check them: check_name_upper(), check_name_lower(), and check_name_camel(). For now, these merely wrap around check_name_str(), but that will change

[PATCH v2 09/10] Acceptance Tests: add basic documentation on LinuxTest base class

2021-03-23 Thread Cleber Rosa
Signed-off-by: Cleber Rosa Reviewed-by: Marc-André Lureau Reviewed-by: Willian Rampazzo --- docs/devel/testing.rst | 25 + 1 file changed, 25 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 1da4c4e4c4..ed2a06db28 100644 ---

[PULL 19/29] qapi: Rename pragma *-whitelist to *-exceptions

2021-03-23 Thread Markus Armbruster
Rename pragma returns-whitelist to command-returns-exceptions, and name-case-whitelist to member-name-case-exceptions. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-20-arm...@redhat.com> Reviewed-by: Eric Blake --- docs/devel/qapi-code-gen.txt | 21

[PATCH v2 06/10] Acceptance Tests: make username/password configurable

2021-03-23 Thread Cleber Rosa
This makes the username/password used for authentication configurable, because some guest operating systems may have restrictions on accounts to be used for logins, and it just makes it better documented. Signed-off-by: Cleber Rosa --- tests/acceptance/avocado_qemu/__init__.py | 6 -- 1

[PULL 26/29] qapi: Enforce struct member naming rules

2021-03-23 Thread Markus Armbruster
Struct members, including command arguments, event data, and union inline base members, should use '-', not '_'. Enforce this. Fix the fixable offenders (all in tests/), and add the remainder to pragma member-name-exceptions. Signed-off-by: Markus Armbruster Message-Id:

Re: [PATCH 09/28] qapi: Lift enum-specific code out of check_name_str()

2021-03-23 Thread John Snow
On 3/23/21 5:40 AM, Markus Armbruster wrote: check_name_str() masks leading digits when passed enum_member=True. Only check_enum() does. Lift the masking into check_enum(). Signed-off-by: Markus Armbruster --- scripts/qapi/expr.py | 23 ++- 1 file changed, 10

[PATCH v2 01/10] tests/acceptance/virtiofs_submounts.py: add missing accel tag

2021-03-23 Thread Cleber Rosa
The tag is useful to select tests that depend/use a particular feature. Signed-off-by: Cleber Rosa Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Willian Rampazzo --- tests/acceptance/virtiofs_submounts.py | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 02/10] tests/acceptance/virtiofs_submounts.py: evaluate string not length

2021-03-23 Thread Cleber Rosa
If the vmlinuz variable is set to anything that evaluates to True, then the respective arguments should be set. If the variable contains an empty string, than it will evaluate to False, and the extra arguments will not be set. This keeps the same logic, but improves readability a bit.

[PULL 17/29] tests/qapi-schema: Rename pragma-*-crap to pragma-value-not-*

2021-03-23 Thread Markus Armbruster
Rename pragma-doc-required-crap to pragma-not-bool, pragma-returns-whitelist-crap to pragma-value-not-list, and pragma-name-case-whitelist-crap to pragma-value-not-list-of-str. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-18-arm...@redhat.com> Reviewed-by: Eric Blake ---

[Bug 1915027] Re: RISC-V 64, CPUs do ilegal 0x00 write with SMP

2021-03-23 Thread Alistair Francis
Even with -smp 1 you will see the same errors. The problem is because there is nothing to run after OpenSBI jumps to the next stage. If you load a kernel you will not see the error messages. ** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are

[PULL 28/29] qapi: Enforce union and alternate branch naming rules

2021-03-23 Thread Markus Armbruster
Union branch names should use '-', not '_'. Enforce this. The only offenders are in tests/. Fix them. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-29-arm...@redhat.com> Reviewed-by: Eric Blake [Commit message typo fixed] --- scripts/qapi/expr.py

[PULL 10/29] qapi: Rework name checking in preparation of stricter checking

2021-03-23 Thread Markus Armbruster
Naming rules differ for the various kinds of names. To prepare enforcing them, define functions to check them: check_name_upper(), check_name_lower(), and check_name_camel(). For now, these merely wrap around check_name_str(), but that will change shortly. Replace the other uses of

[PULL 22/29] qapi: Prepare for rejecting underscore in command and member names

2021-03-23 Thread Markus Armbruster
Command names and member names within a type should be all lower case with words separated by a hyphen. We also accept underscore. Rework check_name_lower() to optionally reject underscores, but don't use that option, yet. Update expected test output for the changed error message.

[PULL 11/29] qapi: Move uppercase rejection to check_name_lower()

2021-03-23 Thread Markus Armbruster
check_name_lower() is the only user of check_name_str() using permit_upper=False. Move the associated code from check_name_str() to check_name_lower(), and drop the parameter. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-12-arm...@redhat.com> Reviewed-by: Eric Blake ---

[PULL 27/29] qapi: Enforce enum member naming rules

2021-03-23 Thread Markus Armbruster
Enum members should use '-', not '_'. Enforce this. Fix the fixable offenders (all in tests/), and add the remainder to pragma member-name-exceptions. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-28-arm...@redhat.com> Reviewed-by: Eric Blake --- qapi/pragma.json

[PULL 15/29] tests/qapi-schema: Rename redefined-builtin to redefined-predefined

2021-03-23 Thread Markus Armbruster
The previous commit changed this test to clash with a predefined enum type, not a built-in type. Adjust its name. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-16-arm...@redhat.com> Reviewed-by: Eric Blake --- tests/qapi-schema/meson.build

[PULL 20/29] qapi/pragma: Streamline comments on member-name-exceptions

2021-03-23 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-21-arm...@redhat.com> Reviewed-by: Eric Blake --- qapi/pragma.json | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/qapi/pragma.json b/qapi/pragma.json index 4895848c5e..4c47c802d1 100644

[PULL 08/29] qapi: Permit flat union members for any tag value

2021-03-23 Thread Markus Armbruster
Flat union branch names match the tag enum's member names. Omitted branches default to "no members for this tag value". Branch names starting with a digit get rejected like "'data' member '0' has an invalid name". However, omitting the branch works. This is because flat union tag values get

[PULL 16/29] qapi: Factor out QAPISchemaParser._check_pragma_list_of_str()

2021-03-23 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-17-arm...@redhat.com> Reviewed-by: Eric Blake --- scripts/qapi/parser.py | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py index

[PULL 29/29] block: Remove monitor command block_passwd

2021-03-23 Thread Markus Armbruster
Command block_passwd always fails since Commit c01c214b69 "block: remove all encryption handling APIs" (v2.10.0) turned block_passwd into a stub that always fails, and hardcoded encryption_key_missing to false in query-named-block-nodes and query-block. Commit ad1324e044 "block: remove

[PULL 12/29] qapi: Consistently permit any case in downstream prefixes

2021-03-23 Thread Markus Armbruster
We require lowercase __RFQDN_ downstream prefixes only where we require the prefixed name to be lowercase. Don't; permit any case in __RFQDN_ prefixes anywhere. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-13-arm...@redhat.com> Reviewed-by: Eric Blake ---

[PULL 21/29] tests-qmp-cmds: Drop unused and incorrect qmp_TestIfCmd()

2021-03-23 Thread Markus Armbruster
Commit 967c885108 "qapi: add 'if' to top-level expressions" added command TestIfCmd with an 'if' condition. It also added the qmp_TestIfCmd() to go with it, guarded by the corresponding #if. Commit ccadd6bcba "qapi: Add 'if' to implicit struct members" changed the command, but not the function.

[PULL 24/29] qapi: Enforce command naming rules

2021-03-23 Thread Markus Armbruster
Command names should be lower-case. Enforce this. Fix the fixable offenders (all in tests/), and add the remainder to pragma command-name-exceptions. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-25-arm...@redhat.com> Reviewed-by: Eric Blake ---

[PULL 18/29] tests/qapi-schema: Rename returns-whitelist to returns-bad-type

2021-03-23 Thread Markus Armbruster
This test covers returning "bad" types. Pragma returns-whitelist is just one aspect. Naming it returns-whitelist is suboptimal. Rename to returns-bad-type. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-19-arm...@redhat.com> Reviewed-by: Eric Blake ---

[PULL 04/29] tests/qapi-schema: Belatedly update comment on alternate clash

2021-03-23 Thread Markus Armbruster
Commit 0426d53c65 "qapi: Simplify visiting of alternate types" eliminated the implicit alternate enum, but neglected to update a comment about it in a test. Do that now. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-5-arm...@redhat.com> Reviewed-by: John Snow ---

[PULL 02/29] tests/qapi-schema: Drop redundant flat-union-inline test

2021-03-23 Thread Markus Armbruster
flat-union-inline.json covers longhand branch definition with an invalid type value. It's redundant: longhand branch definition is covered by flat-union-inline-invalid-dict.json, and invalid type value is covered by nested-struct-data.json. Drop the test. Signed-off-by: Markus Armbruster

[PULL 14/29] qapi: Enforce type naming rules

2021-03-23 Thread Markus Armbruster
Type names should be CamelCase. Enforce this. The only offenders are in tests/. Fix them. Add test type-case to cover the new error. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-15-arm...@redhat.com> Reviewed-by: Eric Blake [Regexp simplified, new test made more

[PULL 23/29] qapi: Enforce feature naming rules

2021-03-23 Thread Markus Armbruster
Feature names should use '-', not '_'. Enforce this. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-24-arm...@redhat.com> Reviewed-by: Eric Blake --- scripts/qapi/expr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qapi/expr.py

[PULL 25/29] tests/qapi-schema: Switch member name clash test to struct

2021-03-23 Thread Markus Armbruster
Test args-name-clash covers command parameter name clash. This effectively covers struct member name clash as well. The next commit will make parameter name clash impossible. Convert args-name-clash from testing command to testing a struct, and rename it to struct-member-name-clash.

[PULL 03/29] tests/qapi-schema: Rework comments on longhand member definitions

2021-03-23 Thread Markus Armbruster
A few old comments talk about "desired future use of defaults" and "anonymous inline branch types". Kind of misleading since commit 87adbbffd4 "qapi: add a dictionary form for TYPE" added longhand member definitions. Talk about that instead. Signed-off-by: Markus Armbruster Message-Id:

[PULL 09/29] qapi: Lift enum-specific code out of check_name_str()

2021-03-23 Thread Markus Armbruster
check_name_str() masks leading digits when passed enum_member=True. Only check_enum() does. Lift the masking into check_enum(). Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-10-arm...@redhat.com> Reviewed-by: Eric Blake --- scripts/qapi/expr.py | 23

  1   2   3   4   5   6   >