[PATCH v4] qapi/opts-visitor: Fixed fallthrough compiler warning

2020-08-15 Thread Rohit Shinde
Added fallthrough comment on line 270 to fix compiler warning Signed-off-by: Rohit Shinde --- qapi/opts-visitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c index 43cf60d3a0..3422ff265e 100644 --- a/qapi/opts-visitor.c +++

Re: [RFC v3 26/71] target/riscv: rvv-1.0: update vext_max_elems() for load/store insns

2020-08-15 Thread Frank Chang
On Sat, Aug 15, 2020 at 1:29 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/14/20 7:52 PM, Frank Chang wrote: > > probe_pages(env, base + stride * i, nf * esz, ra, access_type); > > and > > target_ulong addr = base + stride * i + k * esz; > > > > If we pass

Re: [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good

2020-08-15 Thread Pan Nengyuan
On 2020/8/14 22:50, Li Qiang wrote: > Pan Nengyuan 于2020年8月14日周五 下午6:18写道: >> >> Fix a memleak in test_socket_unix_abstract_good(). >> >> Reported-by: Euler Robot >> Signed-off-by: Pan Nengyuan >> --- > > Hi Nengyuan, > I have sent this two month ago: >

Re: [PATCH v2 00/10] *** A Method for evaluating dirty page rate ***

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1597458180-16945-1-git-send-email-zhengch...@huawei.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST

Re: [PATCH v2 00/10] *** A Method for evaluating dirty page rate ***

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1597458180-16945-1-git-send-email-zhengch...@huawei.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST

Re: [PATCH v2 00/10] *** A Method for evaluating dirty page rate ***

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1597458180-16945-1-git-send-email-zhengch...@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 1597458180-16945-1-git-send-email-zhengch...@huawei.com Subject: [PATCH v2

Re: [RFC 5/9] target/arm: introduce CPU feature dependency mechanism

2020-08-15 Thread Peng Liang
On 8/13/2020 8:48 PM, Andrew Jones wrote: > On Thu, Aug 13, 2020 at 06:26:53PM +0800, Peng Liang wrote: >> Some CPU features are dependent on other CPU features. For example, >> ID_AA64PFR0_EL1.FP field and ID_AA64PFR0_EL1.AdvSIMD must have the same >> value, which means FP and ADVSIMD are

Re: [RFC 2/9] target/arm: parse cpu feature related options

2020-08-15 Thread Peng Liang
On 8/13/2020 8:21 PM, Andrew Jones wrote: > On Thu, Aug 13, 2020 at 06:26:50PM +0800, Peng Liang wrote: >> The implementation of CPUClass::parse_features only supports CPU >> features in "feature=value" format. However, libvirt maybe send us a >> CPU feature string in "+feature/-feature" format.

Re: [RFC 7/9] target/arm: Add CPU features to query-cpu-model-expansion

2020-08-15 Thread Peng Liang
On 8/13/2020 8:56 PM, Andrew Jones wrote: > On Thu, Aug 13, 2020 at 06:26:55PM +0800, Peng Liang wrote: >> Add CPU features to the result of query-cpu-model-expansion so that >> other applications (such as libvirt) can know the supported CPU >> features. >> >> Signed-off-by: zhanghailiang >>

Re: [RFC 6/9] target/arm: introduce KVM_CAP_ARM_CPU_FEATURE

2020-08-15 Thread Peng Liang
On 8/13/2020 7:00 PM, Cornelia Huck wrote: > On Thu, 13 Aug 2020 18:26:54 +0800 > Peng Liang wrote: > >> Introduce KVM_CAP_ARM_CPU_FEATURE to check whether KVM supports to set >> CPU features in ARM. >> >> Signed-off-by: zhanghailiang >> Signed-off-by: Peng Liang >> --- >>

[PATCH v2 00/10] *** A Method for evaluating dirty page rate ***

2020-08-15 Thread Chuan Zheng
v1 -> v2: use g_rand_new() to generate rand_buf move RAMBLOCK_FOREACH_MIGRATABLE into migration/ram.h add skip_sample_ramblock to filter sampled ramblock fix multi-numa vm coredump when query dirtyrate rename qapi interface and rename some structures and functions succeed

[PATCH v2 04/10] migration/dirtyrate: move RAMBLOCK_FOREACH_MIGRATABLE into ram.h

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan RAMBLOCK_FOREACH_MIGRATABLE is need in dirtyrate measure, move the existing definition up into migration/ram.h Signed-off-by: Zheng Chuan --- migration/dirtyrate.c | 1 + migration/ram.c | 11 +-- migration/ram.h | 10 ++ 3 files changed, 12

[PATCH v2 08/10] migration/dirtyrate: Implement get_sample_page_period() and block_sample_page_period()

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Implement get_sample_page_period() and set_sample_page_period() to sleep specific time between sample actions. Signed-off-by: Zheng Chuan Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 23 +++ migration/dirtyrate.h | 2 ++ 2 files changed, 25

[PATCH v2 01/10] migration/dirtyrate: Add get_dirtyrate_thread() function

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Add get_dirtyrate_thread() functions Signed-off-by: Zheng Chuan Signed-off-by: YanYing Zhuang --- migration/Makefile.objs | 1 + migration/dirtyrate.c | 64 + migration/dirtyrate.h | 44 ++

[PATCH v2 07/10] migration/dirtyrate: skip sampling ramblock with size below MIN_RAMBLOCK_SIZE

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan In order to sample real RAM, skip ramblock with size below MIN_RAMBLOCK_SIZE which is 128M as default. Signed-off-by: Zheng Chuan --- migration/dirtyrate.c | 24 migration/dirtyrate.h | 5 + 2 files changed, 29 insertions(+) diff --git

[PATCH v2 06/10] migration/dirtyrate: Compare page hash results for recorded sampled page

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Compare page hash results for recorded sampled page. Signed-off-by: Zheng Chuan Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/migration/dirtyrate.c

[PATCH v2 10/10] migration/dirtyrate: Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function which could be called Signed-off-by: Zheng Chuan --- migration/dirtyrate.c | 56 +++ qapi/migration.json | 42 ++ 2 files

[PATCH v2 03/10] migration/dirtyrate: Add dirtyrate statistics series functions

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Add dirtyrate statistics to record/update dirtyrate info. Signed-off-by: Zheng Chuan --- migration/dirtyrate.c | 30 ++ migration/dirtyrate.h | 10 ++ 2 files changed, 40 insertions(+) diff --git a/migration/dirtyrate.c

[PATCH v2 05/10] migration/dirtyrate: Record hash results for each sampled page

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Record hash results for each sampled page. Signed-off-by: Zheng Chuan Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 135 ++ migration/dirtyrate.h | 7 +++ 2 files changed, 142 insertions(+) diff --git

[PATCH v2 02/10] migration/dirtyrate: Add RamlockDirtyInfo to store sampled page info

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Add RamlockDirtyInfo to store sampled page info of each ramblock. Signed-off-by: Zheng Chuan --- migration/dirtyrate.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/migration/dirtyrate.h b/migration/dirtyrate.h index 914c363..9650566 100644 ---

[PATCH v2 09/10] migration/dirtyrate: Implement calculate_dirtyrate() function

2020-08-15 Thread Chuan Zheng
From: Zheng Chuan Implement calculate_dirtyrate() function. Signed-off-by: Zheng Chuan Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 46 -- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/migration/dirtyrate.c

Re: [PATCH 00/20] target/arm: SVE2 preparatory patches

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200815013145.539409-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20200815013145.539409-1-richard.hender...@linaro.org Subject: [PATCH 00/20]

[PATCH 03/20] target/arm: Split out gen_gvec_fn_zzz, do_zzz_fn

2020-08-15 Thread Richard Henderson
Model gen_gvec_fn_zzz on gen_gvec_fn3 in translate-a64.c, but indicating which kind of register and in which order. Model do_zzz_fn on the other do_foo functions that take an argument set and verify sve enabled. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 43

[PATCH 18/20] target/arm: Convert integer multiply (indexed) to gvec for aa64 advsimd

2020-08-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 4 target/arm/translate-a64.c | 16 target/arm/vec_helper.c| 29 + 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/target/arm/helper.h b/target/arm/helper.h

[PATCH 14/20] target/arm: Generalize inl_qrdmlah_* helper functions

2020-08-15 Thread Richard Henderson
Unify add/sub helpers and add a parameter for rounding. This will allow saturating non-rounding to reuse this code. Signed-off-by: Richard Henderson --- target/arm/vec_helper.c | 80 +++-- 1 file changed, 29 insertions(+), 51 deletions(-) diff --git

RE: [PATCH v1 0/1] COLO: migrate dirty ram pages before colo checkpoint

2020-08-15 Thread Zhanghailiang
> -Original Message- > From: Derek Su [mailto:jwsu1...@gmail.com] > Sent: Thursday, August 13, 2020 6:28 PM > To: Lukas Straub > Cc: Derek Su ; qemu-devel@nongnu.org; Zhanghailiang > ; chy...@qnap.com; quint...@redhat.com; > dgilb...@redhat.com; ctch...@qnap.com > Subject: Re: [PATCH v1

[PATCH v3 2/3] target/arm: Add cpu properties to control pauth

2020-08-15 Thread Richard Henderson
The crypto overhead of emulating pauth can be significant for some workloads. Add two boolean properties that allows the feature to be turned off, on with the architected algorithm, or on with an implementation defined algorithm. We need two intermediate booleans to control the state while

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Rohit Shinde
Hey Philippe, Thanks for the detailed comments! I have a couple of questions. 1. I'll modify the patch to just include a fallthrough comment instead of an attribute. How do I include the v4 version number in the patch? Do I erase the last commit on my branch or fork from the master and

Re: [PATCH v4 0/3] Modify AMD topology to use socket/dies/core/thread model

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/159744083536.39197.13827776633866601278.st...@naples-babu.amd.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.

Re: [PATCH v5 14/14] kvm: remove kvm specific functions from global includes

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > accel/kvm/kvm-cpus.h | 7 +++ > accel/stubs/kvm-stub.c | 22 -- > include/sysemu/kvm.h | 7 --- > 3 files changed, 7 insertions(+), 29 deletions(-) Reviewed-by: Richard

[PATCH 05/20] target/arm: Merge do_vector2_p into do_mov_p

2020-08-15 Thread Richard Henderson
This is the only user of the function. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index b0fa38db1c..d310709de3 100644 ---

[PATCH 02/10] numa: introduce MachineClass::forbid_asymmetrical_numa

2020-08-15 Thread Daniel Henrique Barboza
The pSeries machine does not support asymmetrical NUMA configurations. CC: Eduardo Habkost CC: Marcel Apfelbaum Signed-off-by: Daniel Henrique Barboza --- hw/core/numa.c | 7 +++ hw/ppc/spapr.c | 1 + include/hw/boards.h | 1 + 3 files changed, 9 insertions(+) diff --git

[PATCH 10/20] target/arm: Split out gen_gvec_ool_zzp

2020-08-15 Thread Richard Henderson
Model after gen_gvec_fn_zzz et al. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index ea6058f7ef..3361e1c01f 100644 ---

[PATCH 05/10] spapr: make ibm, max-associativity-domains scale with user input

2020-08-15 Thread Daniel Henrique Barboza
The ibm,max-associativity-domains is considering that only a single associativity domain can exist in the same NUMA level. This is true today because we do not support any type of NUMA distance user customization, and all nodes are in the same distance to each other. To enhance NUMA distance

[PATCH 15/20] target/arm: Fix sve_uzp_p vs odd vector lengths

2020-08-15 Thread Richard Henderson
Missed out on compressing the second half of a predicate with length vl % 512 > 256. Adjust all of the x + (y << s) to x | (y << s) as a general style fix. Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- target/arm/sve_helper.c | 30 +- 1 file

Re: [PATCH v2 000/150] Meson integration for 5.2

2020-08-15 Thread Howard Spoelstra
On Fri, Aug 14, 2020 at 11:15 AM Paolo Bonzini wrote: > > Hi Paolo, I don't know how much of this is already meant to work, but I run into several issues when compiling the latest code from the meson-poc-next branch. 1. MSYS2-based Windows build: The guide to compile e.g., qemu-system-ppc on

Re: [PATCH 6/7] hw/ide/pci: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:33写道: > > Use self-explicit definitions instead of magic '512' value. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- > hw/ide/pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ide/pci.c

[PATCH 04/20] target/arm: Rearrange {sve,fp}_check_access assert

2020-08-15 Thread Richard Henderson
We want to ensure that access is checked by the time we ask for a specific fp/vector register. We want to ensure that we do not emit two lots of code to raise an exception. But sometimes it's difficult to cleanly organize the code such that we never pass through sve_check_access exactly once.

Re: [RFC v3 26/71] target/riscv: rvv-1.0: update vext_max_elems() for load/store insns

2020-08-15 Thread Frank Chang
On Sat, Aug 15, 2020 at 2:36 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/13/20 7:48 PM, Frank Chang wrote: > > esz is passed from e.g. GEN_VEXT_LD_STRIDE() macro: > > > >> #define GEN_VEXT_LD_STRIDE(NAME, ETYPE, LOAD_FN)\ > >> void HELPER(NAME)(void *vd, void * v0,

[PATCH v3 3/3] target/arm: Use object_property_add_bool for "sve" property

2020-08-15 Thread Richard Henderson
The interface for object_property_add_bool is simpler, making the code easier to understand. Reviewed-by: Andrew Jones Signed-off-by: Richard Henderson --- target/arm/cpu64.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/target/arm/cpu64.c

Re: [PATCH 1/7] block/null: Make more explicit the driver default size is 1GiB

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:29写道: > > As it is not obvious the default size for the null block driver > is 1 GiB, replace the obfuscated '1 << 30' magic value by a > definition using IEC binary prefixes. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- >

[PATCH v3 0/3] target/arm: Implement an IMPDEF pauth algorithm

2020-08-15 Thread Richard Henderson
The architected pauth algorithm is quite slow without hardware support, and boot times for kernels that enable use of the feature have been significantly impacted. Version 1 blurb at https://lists.nongnu.org/archive/html/qemu-devel/2020-08/msg02172.html which contains larger study of the

[Bug 1877688] Re: 9p virtfs device reports error when opening certain files

2020-08-15 Thread Christian Schoenebeck
Fixed in QEMU 5.1 release. ** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1877688 Title: 9p virtfs device reports error when

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200815151245.10640-1-rohit.shinde12...@gmail.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [PATCH 4/7] hw/ide/ahci: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:31写道: > > Use self-explicit definitions instead of magic '512' value. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- > hw/ide/ahci.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/hw/ide/ahci.c

[PATCH v3 1/3] target/arm: Implement an IMPDEF pauth algorithm

2020-08-15 Thread Richard Henderson
Without hardware acceleration, a cryptographically strong algorithm is too expensive for pauth_computepac. Even with hardware accel, we are not currently expecting to link the linux-user binaries to any crypto libraries, and doing so would generally make the --static build fail. So choose XXH64

Re: [PATCH v5 13/14] hax: remove hax specific functions from global includes

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > accel/stubs/hax-stub.c| 10 -- > include/sysemu/hax.h | 17 - > target/i386/hax-all.c | 1 - > target/i386/hax-cpus.c| 1 - > target/i386/hax-cpus.h| 16

[PATCH 11/20] target/arm: Split out gen_gvec_ool_zzz

2020-08-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 53 +- 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 3361e1c01f..3a90a645fd 100644 ---

Re: [PATCH 10/18] hw/sd: Add Cadence SDHCI emulation

2020-08-15 Thread Philippe Mathieu-Daudé
On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > Cadence SD/SDIO/eMMC Host Controller (SD4HC) is an SDHCI compatible > controller. The SDHCI compatible registers start from offset 0x200, > which are called Slot Register Set (SRS) in its datasheet. > > This creates a Cadence SDHCI model

Re: [PATCH 09/18] hw/sd: sdhci: Make sdhci_poweron_reset() internal visible

2020-08-15 Thread Philippe Mathieu-Daudé
On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > sdhci_poweron_reset() might be needed for any SDHCI compatible > device that is built on top of the generic SDHCI device. NAck. Please use device_legacy_reset() instead. In next patch: device_legacy_reset(DEVICE(>slot)); Thanks,

Re: [PATCH 07/18] hw/sd: sd: Fix incorrect populated function switch status data structure

2020-08-15 Thread Philippe Mathieu-Daudé
+Sai Pavan On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > At present the function switch status data structure bit [399:376] > are wrongly pupulated. These 3 bytes encode function switch status > for the 6 function groups, with 4 bits per group, starting from > function group 6 at bit

Re: [PATCH 3/7] hw/ide/core: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:31写道: > > Use self-explicit definitions instead of magic '512' value. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- > hw/ide/core.c | 23 --- > 1 file changed, 12 insertions(+), 11 deletions(-) > > diff

[PATCH 00/10] pseries NUMA distance rework

2020-08-15 Thread Daniel Henrique Barboza
Hi, This series implements a new approach to the NUMA code in the spapr machine. We're now able to make an attempt to try to take user input in consideration, instead of ignoring any user input regarding NUMA distance. This series was rebased upon David's ppc-for-5.2 tree. More information about

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200815151148.10571-1-rohit.shinde12...@gmail.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

[Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc

2020-08-15 Thread Ech
Public bug reported: Issue discovered while trying to build pikvm (1) Long story short: when using qemu-arm-static 5.1, gcc exits whith message: Allocating guest commpage: Operation not permitted when using qemu-arm-static v5.0, gcc "works" Steps to reproduce will follow (1)

[PATCH 19/20] target/arm: Convert integer multiply-add (indexed) to gvec for aa64 advsimd

2020-08-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 14 ++ target/arm/translate-a64.c | 34 ++ target/arm/vec_helper.c| 25 + 3 files changed, 73 insertions(+) diff --git a/target/arm/helper.h

[PATCH 17/20] target/arm: Fix sve_punpk_p vs odd vector lengths

2020-08-15 Thread Richard Henderson
Wrote too much with punpk1 with vl % 512 != 0. Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- target/arm/sve_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c index b8651ae173..c983cd4356

[PATCH 10/10] specs/ppc-spapr-numa: update with new NUMA support

2020-08-15 Thread Daniel Henrique Barboza
This update provides more in depth information about the choices and drawbacks of the new NUMA support for the spapr machine. Signed-off-by: Daniel Henrique Barboza --- docs/specs/ppc-spapr-numa.rst | 213 ++ 1 file changed, 213 insertions(+) diff --git

[Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc

2020-08-15 Thread Ech
Additional info, error message text ( "Allocating guest commpage" ) found in this commit: https://fossies.org/diffs/qemu/5.0.0_vs_5.1.0-rc0/linux-user/elfload.c-diff.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1891749] [NEW] CGA Mode 6 is only 100 pixels tall, when it's supposed to be 200

2020-08-15 Thread -
Public bug reported: I have written a program that used CGA Mode 6 (640x200 black and white). However qemu-system-i386 only displays the first 100 pixels, effectively limiting the resolution of mode 6 to 640x100. When running the same program on a real computer it uses the whole 640x200 pixels.

[Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc

2020-08-15 Thread Ech
Steps to reproduce 1. Download and extract attached tarball. $ make # will build the docker container $ make run # will enter the container # once in the container, run # /qemu-arm-static-50 /bin/bash /runme.sh ** Attachment added: "qemu-1891748-1.tgz"

[PATCH 08/20] target/arm: Split out gen_gvec_ool_zzzp

2020-08-15 Thread Richard Henderson
Model after gen_gvec_fn_zzz et al. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 35 --- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index aa7ed070e3..535d086838

[PATCH 06/10] spapr: allow 4 NUMA levels in ibm, associativity-reference-points

2020-08-15 Thread Daniel Henrique Barboza
The value of ibm,associativity-reference-points is in sync with what Skiboot does. It's a three level NUMA configuration where the first two levels references the same associativity index (0x4), meaning that the next distance after the local_distance (10) is two orders away (a '40' value in the

Re: [PATCH 08/18] hw/sd: sd: Correctly set the high capacity bit

2020-08-15 Thread Philippe Mathieu-Daudé
On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > Per the SD spec, Standard Capacity SD Memory Card (SDSC) supports > capacity up to and including 2 GiB. > Fixes: 2d7adea4fe ("hw/sd: Support SDHC size cards") > Signed-off-by: Bin Meng > --- > > hw/sd/sd.c | 2 +- > 1 file changed, 1

Re: [PATCH v1 0/1] COLO: migrate dirty ram pages before colo checkpoint

2020-08-15 Thread Derek Su
On Sat, Aug 15, 2020 at 9:42 AM Zhanghailiang wrote: > > > -Original Message- > > From: Derek Su [mailto:jwsu1...@gmail.com] > > Sent: Thursday, August 13, 2020 6:28 PM > > To: Lukas Straub > > Cc: Derek Su ; qemu-devel@nongnu.org; Zhanghailiang > > ; chy...@qnap.com;

Re: [RFC v3 26/71] target/riscv: rvv-1.0: update vext_max_elems() for load/store insns

2020-08-15 Thread Frank Chang
On Sat, Aug 15, 2020 at 2:36 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/13/20 7:48 PM, Frank Chang wrote: > > esz is passed from e.g. GEN_VEXT_LD_STRIDE() macro: > > > >> #define GEN_VEXT_LD_STRIDE(NAME, ETYPE, LOAD_FN)\ > >> void HELPER(NAME)(void *vd, void * v0,

Re: [PATCH v5 11/14] hvf: remove hvf specific functions from global includes

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > accel/stubs/Makefile.objs | 1 - > accel/stubs/hvf-stub.c | 30 -- > include/sysemu/hvf.h | 8 > target/i386/hvf/hvf-cpus.h | 8 >

[PATCH 04/10] spapr: add spapr_machine_using_legacy_numa() helper

2020-08-15 Thread Daniel Henrique Barboza
The changes to come to NUMA support are all guest visible. In theory we could just create a new 5_1 class option flag to avoid the changes to cascade to 5.1 and under. The reality is that these changes are only relevant if the machine has more than one NUMA node. There is no need to change guest

[PATCH 07/10] spapr: create helper to set ibm,associativity

2020-08-15 Thread Daniel Henrique Barboza
We have several places around hw/ppc files where we use the same code to set the ibm,associativity array. This patch creates a helper called spapr_set_associativity() to do that in a single place. It'll also make it saner to change the value of ibm,associativity in the next patches. After this

Re: [PATCH 7/7] hw/scsi/scsi-disk: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:34写道: > > Use self-explicit definitions instead of magic '512' value. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- > hw/scsi/scsi-disk.c | 44 +++- > 1 file changed, 23 insertions(+), 21

[PATCH 03/10] spapr: robustify NVLink2 NUMA node logic

2020-08-15 Thread Daniel Henrique Barboza
NVLink2 GPUs are allocated in their own NUMA node, at maximum distance from every other resource in the board. The existing logic makes some assumptions that don't scale well: - only NVLink2 GPUs will ever require such mechanism, meaning that the GPU logic is tightly coupled with the NUMA setup

Re: [PATCH 11/18] hw/riscv: microchip_pfsoc: Connect a Cadence SDHCI controller and an SD card

2020-08-15 Thread Philippe Mathieu-Daudé
On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > Microchip PolarFire SoC integrates one Cadence SDHCI controller. > On the Icicle Kit board, one eMMC chip and an external SD card > connect to this controller depending on different configuration. > > As QEMU does not support eMMC yet, we

Re: [PATCH 5/7] hw/ide/atapi: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-15 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年8月14日周五 下午4:30写道: > > Use self-explicit definitions instead of magic '512' value. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Qiang > --- > hw/ide/atapi.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git

[PATCH 07/20] target/arm: Use tcg_gen_gvec_bitsel for trans_SEL_pppp

2020-08-15 Thread Richard Henderson
The gvec operation was added after the initial implementation of the SEL instruction and was missed in the conversion. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git

[PATCH 08/10] spapr: introduce SpaprMachineClass::numa_assoc_domains

2020-08-15 Thread Daniel Henrique Barboza
We can't use the input from machine->numa_state->nodes directly in the pSeries machine because PAPR does not work with raw distance values, like ACPI SLIT does. We need to determine common associativity domains, based on similar performance/distance of the resources, and set these domains in the

[PATCH 09/20] target/arm: Merge helper_sve_clr_* and helper_sve_movz_*

2020-08-15 Thread Richard Henderson
The existing clr functions have only one vector argument, and so can only clear in place. The existing movz functions have two vector arguments, and so can clear while moving. Merge them, with a flag that controls the sense of active vs inactive elements being cleared. Signed-off-by: Richard

[PATCH 13/20] target/arm: Tidy SVE tszimm shift formats

2020-08-15 Thread Richard Henderson
Rather than require the user to fill in the immediate (shl or shr), create full formats that include the immediate. Signed-off-by: Richard Henderson --- target/arm/sve.decode | 35 --- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git

[PATCH 20/20] target/arm: Convert sq{, r}dmulh to gvec for aa64 advsimd

2020-08-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 10 target/arm/translate-a64.c | 33 ++ target/arm/vec_helper.c| 48 ++ 3 files changed, 81 insertions(+), 10 deletions(-) diff --git a/target/arm/helper.h

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Philippe Mathieu-Daudé
This is v3 with no change w.r.t. v1/v2 (except this time you correctly Cc'ed the maintainers). Maybe something is wrong in your setup? On 8/15/20 5:12 PM, Rohit Shinde wrote: > Added the fallthrough comment so that the compiler doesn't emit an error on > compiling with the -Wimplicit-fallthrough

[PATCH 01/20] qemu/int128: Add int128_lshift

2020-08-15 Thread Richard Henderson
Add left-shift to match the existing right-shift. Signed-off-by: Richard Henderson --- include/qemu/int128.h | 16 1 file changed, 16 insertions(+) diff --git a/include/qemu/int128.h b/include/qemu/int128.h index 5c9890db8b..76ea405922 100644 --- a/include/qemu/int128.h +++

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Philippe Mathieu-Daudé
When you repost a patch, please add a version. This is patch v2. Next (once you read my v1 comments) should be v3. Watch out, v1 correctly Cc'ed the maintainers, this v2 doesn't. On 8/15/20 5:11 PM, Rohit Shinde wrote: > Added the fallthrough comment so that the compiler doesn't emit an error on

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Philippe Mathieu-Daudé
Hi Rohit, Congratulation for your first patch! It is in very good shape already :) It is easier for the reviewers if you start the patch subject with the name of the subsystem concerned, or the file modified: "qapi/opts-visitor: Add missing fallthrough annotations" On 8/15/20 3:00 PM, Rohit

[PATCH v4 1/3] i386: Simplify CPUID_8000_001E for AMD

2020-08-15 Thread Babu Moger
apic_id contains all the information required to build CPUID_8000_001E. Also remove the restriction on number bits on core_id and node_id. Remove all the hardcoded values and replace with generalized fields. Refer the Processor Programming Reference (PPR) documentation available from the bugzilla

[PATCH 2/2] hw: megasas: consider 'iov_count=0' is an error in megasas_map_sgl

2020-08-15 Thread Li Qiang
Currently in 'megasas_map_sgl' when 'iov_count=0' will just return success however the 'cmd' doens't contain any iov. This will cause the assert in 'scsi_dma_complete' failed. This is because in 'dma_blk_cb' the 'dbs->sg_cur_index == dbs->sg->nsg' will be true and just call 'dma_complete'. However

[PATCH 01/10] hw: add compat machines for 5.2

2020-08-15 Thread Daniel Henrique Barboza
From: Cornelia Huck Add 5.2 machine types for arm/i440fx/q35/s390x/spapr. Signed-off-by: Cornelia Huck --- hw/arm/virt.c | 9 - hw/core/machine.c | 3 +++ hw/i386/pc.c | 3 +++ hw/i386/pc_piix.c | 14 +- hw/i386/pc_q35.c

Re: [PATCH 7/7] target/arm/cpu: spe: Enable spe to work with host cpu

2020-08-15 Thread Andrew Jones
On Fri, Aug 14, 2020 at 12:28:25PM -0700, Richard Henderson wrote: > On 8/11/20 9:49 AM, Andrew Jones wrote: > > Yes, except you need to drop the ARM_FEATURE_SPE define and use the ID > > register bit instead like "sve_supported" does. > > On a related note, I think we have a latent bug, or at

[PATCH 0/2] Fix the assert failure in scsi_dma_complete

2020-08-15 Thread Li Qiang
Currently in 'megasas_map_sgl' when 'iov_count=0' will just return success however the 'cmd' doens't contain any iov. This will cause the assert in 'scsi_dma_complete' failed. This is because in 'dma_blk_cb' the 'dbs->sg_cur_index == dbs->sg->nsg' will be true and just call 'dma_complete'. However

[PATCH 09/10] spapr: consider user input when defining spapr guest NUMA

2020-08-15 Thread Daniel Henrique Barboza
This patch puts all the pieces together to finally allow user input when defining the NUMA topology of the spapr guest. The logic is centered in the new spapr_init_numa_assoc_domains() function. This is called once at machine_init(), if we're not using legacy_numa mode, to initiate the

[PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Rohit Shinde
Added the fallthrough comment so that the compiler doesn't emit an error on compiling with the -Wimplicit-fallthrough flag. Signed-off-by: Rohit Shinde --- qapi/opts-visitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c index

Re: [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200815130046.5344-1-rohit.shinde12...@gmail.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

[PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c

2020-08-15 Thread Rohit Shinde
Added the fallthrough comment so that the compiler doesn't emit an error on compiling with the -Wimplicit-fallthrough flag. Signed-off-by: Rohit Shinde --- qapi/opts-visitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c index

Re: [PATCH v5 10/14] cpus: add handle_interrupt to the CpusAccel interface

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > +static void generic_handle_interrupt(CPUState *cpu, int mask) > +{ > +cpu->interrupt_request |= mask; > + > +if (!qemu_cpu_is_self(cpu)) { > +qemu_cpu_kick(cpu); > +} > +} > + > +void cpu_interrupt(CPUState *cpu, int mask) > +{ > +

Re: [PATCH 2/2] hw: megasas: consider 'iov_count=0' is an error in megasas_map_sgl

2020-08-15 Thread Li Qiang
Oh, sorry to forget to CC Alexander Bulekov. Thanks, Li Qiang Li Qiang 于2020年8月15日周六 下午10:20写道: > > Currently in 'megasas_map_sgl' when 'iov_count=0' will just return > success however the 'cmd' doens't contain any iov. This will cause > the assert in 'scsi_dma_complete' failed. This is because

[PATCH 16/20] target/arm: Fix sve_zip_p vs odd vector lengths

2020-08-15 Thread Richard Henderson
Wrote too much with low-half zip (zip1) with vl % 512 != 0. Adjust all of the x + (y << s) to x | (y << s) as a style fix. Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- target/arm/sve_helper.c | 25 ++--- 1 file changed, 14 insertions(+), 11

[PATCH v4 3/3] hw/i386: Remove node_id, nr_nodes and nodes_per_pkg from topology

2020-08-15 Thread Babu Moger
Remove node_id, nr_nodes and nodes_per_pkg from topology. Use die_id, nr_dies and dies_per_pkg which is already available. Removes the confusion over two variables. With node_id removed in topology the uninitialized memory issue with -device and CPU hotplug will be fixed. Link:

[PATCH v4 0/3] Modify AMD topology to use socket/dies/core/thread model

2020-08-15 Thread Babu Moger
This series fixes couple of issues with recent topology related code. 1. Modify AMD topology to use socket/dies/core/thread model 2. Error out if the user does not pass the dies information if EPYC cpu is numa configured. 3. Remove the node_id references in topology and use die_id instead.

[PATCH v4 2/3] hw/i386: Update the EPYC topology to use socket/dies/core/thread model

2020-08-15 Thread Babu Moger
Update the EPYC topology to use socket/dies/core/thread model. The EPYC model does not use the smp dies to build the topology. Instead, it uses numa nodes to build the topology. Internally both are similar concept which divides the cores on L3 boundary. Combining both into one terminology makes it

[PATCH 06/20] target/arm: Clean up 4-operand predicate expansion

2020-08-15 Thread Richard Henderson
Move the check for !S into do__flags, which allows to merge in do_vecop4_p. Split out gen_gvec_fn_ppp without sve_access_check, to mirror gen_gvec_fn_zzz. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 111 ++--- 1 file changed, 43

Re: [PATCH v5 12/14] whpx: remove whpx specific functions from global includes

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > accel/stubs/Makefile.objs | 1 - > accel/stubs/whpx-stub.c | 47 > --- > include/sysemu/whpx.h | 19 --- > target/i386/whpx-cpus.h | 17

Re: [PATCH 13/18] hw/riscv: microchip_pfsoc: Connect a DMA controller

2020-08-15 Thread Philippe Mathieu-Daudé
On 8/14/20 6:40 PM, Bin Meng wrote: > From: Bin Meng > > Connect a DMA controller to Microchip PolarFire SoC. Note interrupt > has not been connected due to missing information in the manual how > interrupts are routed to PLIC. > > On the Icicle Kit board, the HSS firmware utilizes the on-chip

  1   2   >