Re: [Qemu-devel] [PATCH] RISCV: support riscv vector extension 0.7.1

2019-09-01 Thread liuzhiwei
On 2019/8/30 上午5:50, Alistair Francis wrote: On Thu, Aug 29, 2019 at 5:05 AM liuzhiwei wrote: On 2019/8/29 上午5:34, Alistair Francis wrote: On Wed, Aug 28, 2019 at 12:04 AM liuzhiwei wrote: Change-Id: I3cf891bc400713b95f47ecca82b1bf773f3dcb25 Signed-off-by: liuzhiwei --- fpu/softfloat.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: do not allow memory-less/cpu-less NUMA node

2019-09-01 Thread David Gibson
On Fri, Aug 30, 2019 at 07:45:43PM +0200, Greg Kurz wrote: > On Fri, 30 Aug 2019 17:34:13 +0100 > Daniel P. Berrangé wrote: > > > On Fri, Aug 30, 2019 at 06:13:45PM +0200, Laurent Vivier wrote: > > > When we hotplug a CPU on memory-less/cpu-less node, the linux kernel > > > crashes. > > > > > >

Re: [Qemu-devel] [RFC v3] hw/sd/aspeed_sdhci: New device

2019-09-01 Thread Cédric Le Goater
On 22/08/2019 11:17, Cédric Le Goater wrote: > On 20/08/2019 21:02, Eddie James wrote: >> The Aspeed SOCs have two SD/MMC controllers. Add a device that >> encapsulates both of these controllers and models the Aspeed-specific >> registers and behavior. >> >> Tested by reading from mmcblk0 in Linux:

Re: [Qemu-devel] [PATCH v3 0/4] Introduce the microvm machine type

2019-09-01 Thread Jing Liu
On 8/30/2019 10:27 PM, Sergio Lopez wrote: Jing Liu writes: Hi Sergio, On 8/29/2019 11:46 PM, Sergio Lopez wrote: Jing Liu writes: Hi Sergio, The idea is interesting and I tried to launch a guest by your guide but seems failed to me. I tried both legacy and normal modes, but the vnc

[Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)

2019-09-01 Thread Libo Zhou
I am trying to run a simple MIPS program with QEMU user mode. Host: Ubuntu 18.04 LTS on x86_64 QEMU config: ../configure --target-list=mips-linux-user Cross Compiler: sudo apt install gcc-mips-linux-gnu My test.c is simple: int main(void) {int a = 1; int b =2; int c; c = a + b; return 0;} Af

[Qemu-devel] [Bug 1839060] Re: HDA device non functional in Windows 10 1903

2019-09-01 Thread Geoffrey McRae
Hi, I am trying to dig into this issue, can you please provide the verb debug trace from the working version of windows. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1839060 Title: HDA device non

[Qemu-devel] [PATCH] memory: Set notdirty_mem_ops validator

2019-09-01 Thread Tony Nguyen
Existing read rejecting validator was mistakenly cleared. Reads dispatched to io_mem_notdirty then segfaults as there is no read handler. Signed-off-by: Tony Nguyen --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 1df966d17a..05d664541f 100644

Re: [Qemu-devel] [PATCH v5 3/5] 9p: Added virtfs option 'remap_inodes'

2019-09-01 Thread Christian Schoenebeck via Qemu-devel
On Freitag, 30. August 2019 13:48:27 CEST Greg Kurz wrote: > > > diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c > > > index 8cc65c2c67..39c6c2a894 100644 > > > --- a/hw/9pfs/9p.c > > > +++ b/hw/9pfs/9p.c > > > > [snip] > > > > > @@ -1940,6 +2041,19 @@ static int coroutine_fn v9fs_do_readdir(V9fsPDU > >

Re: [Qemu-devel] [PATCH v6 0/4] 9p: Fix file ID collisions

2019-09-01 Thread Christian Schoenebeck via Qemu-devel
On Donnerstag, 29. August 2019 19:02:34 CEST Greg Kurz wrote: > On Thu, 22 Aug 2019 15:18:54 -0700 (PDT) > > no-re...@patchew.org wrote: > > Patchew URL: > > https://patchew.org/QEMU/cover.1566503584.git.qemu_...@crudebyte.com/ > > > > > > > > Hi, > > > > This series seems to have some coding

Re: [Qemu-devel] [PATCH v6 2/4] 9p: Added virtfs option 'multidevs=remap|forbid|warn'

2019-09-01 Thread Christian Schoenebeck via Qemu-devel
On Freitag, 30. August 2019 14:22:38 CEST Greg Kurz wrote: > Some more comments below. [snip] > > diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c > > index 8cc65c2c67..c96ea51116 100644 > > --- a/hw/9pfs/9p.c > > +++ b/hw/9pfs/9p.c > > @@ -25,6 +25,7 @@ > > > > #include "trace.h" > > #include "migratio

Re: [Qemu-devel] [PATCH v6 2/4] 9p: Added virtfs option 'multidevs=remap|forbid|warn'

2019-09-01 Thread Christian Schoenebeck via Qemu-devel
On Donnerstag, 29. August 2019 18:55:28 CEST Greg Kurz wrote: > > diff --git a/fsdev/qemu-fsdev-opts.c b/fsdev/qemu-fsdev-opts.c > > index 7c31af..07a18c6e48 100644 > > --- a/fsdev/qemu-fsdev-opts.c > > +++ b/fsdev/qemu-fsdev-opts.c > > @@ -31,7 +31,9 @@ static QemuOptsList qemu_fsdev_opts = {

Re: [Qemu-devel] [PATCH v6 1/4] 9p: Treat multiple devices on one export as an error

2019-09-01 Thread Christian Schoenebeck via Qemu-devel
On Donnerstag, 29. August 2019 18:27:30 CEST Greg Kurz wrote: > > diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c > > index 586a6dccba..8cc65c2c67 100644 > > --- a/hw/9pfs/9p.c > > +++ b/hw/9pfs/9p.c > > @@ -572,10 +572,18 @@ static void coroutine_fn virtfs_reset(V9fsPDU *pdu) > > > >

Re: [Qemu-devel] Discussion: vnc: memory leak in zrle_compress_data

2019-09-01 Thread Li Qiang
fangying 于2019年9月1日周日 下午8:29写道: > Nice work, your patch does fix this issue in my test. > > I think we should make VncState.zlib to be a pointer type as well. > > Since we are going to use pointers instead of copy, we must make sure that > there’s no race condition of pointer members between the

[Qemu-devel] [PATCH v10 07/11] hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)

2019-09-01 Thread Tao Xu
From: Liu Jingqi This structure describes the memory access latency and bandwidth information from various memory access initiator proximity domains. The latency and bandwidth numbers represented in this structure correspond to rated latency and bandwidth for the platform. The software could use

[Qemu-devel] [PATCH v10 06/11] hmat acpi: Build Memory Proximity Domain Attributes Structure(s)

2019-09-01 Thread Tao Xu
From: Liu Jingqi HMAT is defined in ACPI 6.3: 5.2.27 Heterogeneous Memory Attribute Table (HMAT). The specification references below link: http://www.uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdf It describes the memory attributes, such as memory side cache attributes and bandw

[Qemu-devel] [PATCH v10 08/11] hmat acpi: Build Memory Side Cache Information Structure(s)

2019-09-01 Thread Tao Xu
From: Liu Jingqi This structure describes memory side cache information for memory proximity domains if the memory side cache is present and the physical device forms the memory side cache. The software could use this information to effectively place the data in memory to maximize the performance

[Qemu-devel] [PATCH v10 11/11] tests/bios-tables-test: add test cases for ACPI HMAT

2019-09-01 Thread Tao Xu
ACPI table HMAT has been introduced, QEMU now builds HMAT tables for Heterogeneous Memory with boot option '-numa node'. Add test cases on PC and Q35 machines with 2 numa nodes. Because HMAT is generated when system enable numa, the following tables need to be added for this test: tests/acpi-tes

[Qemu-devel] [PATCH v10 10/11] numa: Extend CLI to provide memory side cache information

2019-09-01 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-cache option to provide Memory Side Cache Information. These memory attributes help to build Memory Side Cache Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Reviewed-by: Daniel Black Signed-off-by: Liu Jingqi Signed-off-by: Tao Xu

[Qemu-devel] [PATCH v10 05/11] numa: Extend CLI to provide initiator information for numa nodes

2019-09-01 Thread Tao Xu
In ACPI 6.3 chapter 5.2.27 Heterogeneous Memory Attribute Table (HMAT), The initiator represents processor which access to memory. And in 5.2.27.3 Memory Proximity Domain Attributes Structure, the attached initiator is defined as where the memory controller responsible for a memory proximity domain

[Qemu-devel] [PATCH v10 04/11] tests: Add test for QAPI builtin type time

2019-09-01 Thread Tao Xu
Add tests for time input such as zero, around limit of precision, signed upper limit, actual upper limit, beyond limits, time suffixes, and etc. Signed-off-by: Tao Xu --- New patch in v10. --- tests/test-keyval.c| 125 + tests/test-qobject-input-visit

[Qemu-devel] [PATCH v10 09/11] numa: Extend CLI to provide memory latency and bandwidth information

2019-09-01 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-lb option to provide System Locality Latency and Bandwidth Information. These memory attributes help to build System Locality Latency and Bandwidth Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Signed-off-by: Liu Jingqi Signed-off-

[Qemu-devel] [PATCH v10 02/11] tests/cutils: Add test for qemu_strtotime_ps()

2019-09-01 Thread Tao Xu
Test the input of basic, time suffixes, float, invaild, trailing and overflow. Signed-off-by: Tao Xu --- New patch in v10. --- tests/test-cutils.c | 199 1 file changed, 199 insertions(+) diff --git a/tests/test-cutils.c b/tests/test-cutils.c index

[Qemu-devel] [PATCH v10 00/11] Build ACPI Heterogeneous Memory Attribute Table (HMAT)

2019-09-01 Thread Tao Xu
This series of patches will build Heterogeneous Memory Attribute Table (HMAT) according to the command line. The ACPI HMAT describes the memory attributes, such as memory side cache attributes and bandwidth and latency details, related to the Memory Proximity Domain. The software is expected to use

[Qemu-devel] [PATCH v10 01/11] util/cutils: Add qemu_strtotime_ps()

2019-09-01 Thread Tao Xu
To convert strings with time suffixes to numbers, support time unit are "ps" for picosecond, "ns" for nanosecond, "us" for microsecond, "ms" for millisecond or "s" for second. Signed-off-by: Tao Xu --- New patch in v10. --- include/qemu/cutils.h | 1 + util/cutils.c | 82 ++

[Qemu-devel] [PATCH v10 03/11] qapi: Add builtin type time

2019-09-01 Thread Tao Xu
Add optional builtin type time, fallback is uint64. This type use qemu_strtotime_ps() for pre-converting time suffix to numbers. Signed-off-by: Tao Xu --- New patch in v10. --- include/qapi/visitor-impl.h | 4 include/qapi/visitor.h | 9 + qapi/opts-visitor.c | 22

Re: [Qemu-devel] Discussion: vnc: memory leak in zrle_compress_data

2019-09-01 Thread fangying
Nice work, your patch does fix this issue in my test. I think we should make VncState.zlib to be a pointer type as well. Since we are going to use pointers instead of copy, we must make sure that there’s no race condition of pointer members between the local vs (vnc worker thread) and origin vs

[Qemu-devel] [PATCH v7 5/6] iotests: extended timeout under Valgrind

2019-09-01 Thread Andrey Shinkevich
As the iotests run longer under the Valgrind, the QEMU_COMM_TIMEOUT is to be increased in the test cases 028, 183 and 192 when running under the Valgrind. Suggested-by: Roman Kagan Signed-off-by: Andrey Shinkevich Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow --- tests/qemu

[Qemu-devel] [PATCH v7 4/6] iotests: Valgrind fails with nonexistent directory

2019-09-01 Thread Andrey Shinkevich
The Valgrind uses the exported variable TMPDIR and fails if the directory does not exist. Let us exclude such a test case from being run under the Valgrind and notify the user of it. Suggested-by: Kevin Wolf Signed-off-by: Andrey Shinkevich Reviewed-by: John Snow --- tests/qemu-iotests/051 | 4

[Qemu-devel] [PATCH v7 1/6] iotests: allow Valgrind checking all QEMU processes

2019-09-01 Thread Andrey Shinkevich
With the '-valgrind' option, let all the QEMU processes be run under the Valgrind tool. The Valgrind own parameters may be set with its environment variable VALGRIND_OPTS, e.g. $ VALGRIND_OPTS="--leak-check=yes" ./check -valgrind or they may be listed in the Valgrind checked file ./.valgrindrc or

[Qemu-devel] [PATCH v7 0/6] Allow Valgrind checking all QEMU processes

2019-09-01 Thread Andrey Shinkevich
In the current implementation of the QEMU bash iotests, only qemu-io processes may be run under the Valgrind with the switch '-valgrind'. Let's allow the common.rc bash script running all other QEMU processes, such as qemu-kvm, qemu-img, qemu-ndb and qemu-vxhs, under the Valgrind. v7: 01: The co

[Qemu-devel] [PATCH v7 2/6] iotests: exclude killed processes from running under Valgrind

2019-09-01 Thread Andrey Shinkevich
The Valgrind tool fails to manage its termination in multi-threaded processes when they raise the signal SIGKILL. The bug has been reported to the Valgrind maintainers and was registered as the bug #409141: https://bugs.kde.org/show_bug.cgi?id=409141 Let's exclude such test cases from running

[Qemu-devel] [PATCH v7 6/6] iotests: extend sleeping time under Valgrind

2019-09-01 Thread Andrey Shinkevich
To synchronize the time when QEMU is running longer under the Valgrind, increase the sleeping time in the test 247. Signed-off-by: Andrey Shinkevich Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow --- tests/qemu-iotests/247 | 6 +- 1 file changed, 5 insertions(+), 1 deleti

[Qemu-devel] [PATCH v7 3/6] iotests: Add casenotrun report to bash tests

2019-09-01 Thread Andrey Shinkevich
The new function _casenotrun() is to be invoked if a test case cannot be run for some reason. The user will be notified by a message passed to the function. It is the caller's responsibility to make skipped a particular test. Suggested-by: Kevin Wolf Signed-off-by: Andrey Shinkevich Reviewed-by:

Re: [Qemu-devel] [PATCH-for-4.2 v9 06/12] hw/arm/virt: Enable device memory cold/hot plug with ACPI boot

2019-09-01 Thread Auger Eric
Hi Shameer, On 9/1/19 1:18 PM, Auger Eric wrote: > Hi Shameer, > > On 8/13/19 11:05 PM, Shameer Kolothum wrote: >> This initializes the GED device with base memory and irq, configures >> ged memory hotplug event and builds the corresponding aml code. With >> this, both hot and cold plug of device

Re: [Qemu-devel] [PATCH-for-4.2 v9 03/12] hw/acpi: Add ACPI Generic Event Device Support

2019-09-01 Thread Auger Eric
Hi Shameer, On 8/13/19 11:05 PM, Shameer Kolothum wrote: > From: Samuel Ortiz > > The ACPI Generic Event Device (GED) is a hardware-reduced specific > device[ACPI v6.1 Section 5.6.9] that handles all platform events, > including the hotplug ones. This patch generates the AML code that > defines G

Re: [Qemu-devel] [PATCH-for-4.2 v9 10/12] docs/specs: Add ACPI GED documentation

2019-09-01 Thread Auger Eric
Hi Shameer, On 8/13/19 11:05 PM, Shameer Kolothum wrote: > Documents basic concepts of ACPI Generic Event device(GED) > and interface between QEMU and the ACPI BIOS. > > Signed-off-by: Shameer Kolothum Reviewed-by: Eric Auger Thanks Eric > --- > docs/specs/acpi_hw_reduced_hotplug.txt | 60 +++

Re: [Qemu-devel] [PATCH-for-4.2 v9 06/12] hw/arm/virt: Enable device memory cold/hot plug with ACPI boot

2019-09-01 Thread Auger Eric
Hi Shameer, On 8/13/19 11:05 PM, Shameer Kolothum wrote: > This initializes the GED device with base memory and irq, configures > ged memory hotplug event and builds the corresponding aml code. With > this, both hot and cold plug of device memory is enabled now for Guest > with ACPI boot. > > Mem

Re: [Qemu-devel] [PATCH-for-4.2 v9 01/12] hw/acpi: Make ACPI IO address space configurable

2019-09-01 Thread Auger Eric
Hi Shameer, On 8/13/19 11:05 PM, Shameer Kolothum wrote: > This is in preparation for adding support for ARM64 platforms > where it doesn't use port mapped IO for ACPI IO space. We are > making changes so that MMIO region can be accommodated > and board can pass the base address into the aml build

Re: [Qemu-devel] [PATCH v1 2/2] hw/pvrdma: add live migration support

2019-09-01 Thread Yuval Shaia
On Sat, Aug 31, 2019 at 10:45:44PM +0300, Marcel Apfelbaum wrote: > > > On 8/28/19 5:23 PM, Sukrit Bhatnagar wrote: > > vmstate_pvrdma describes the PCI and MSIX states as well as the dma > > address for dsr and the gid table of device. > > vmstate_pvrdma_gids describes each gid in the gid table.

Re: [Qemu-devel] [PATCH 2/2] hw/rdma: Utilize ibv_reg_mr_iova for memory registration

2019-09-01 Thread Yuval Shaia
On Sat, Aug 31, 2019 at 10:31:57PM +0300, Marcel Apfelbaum wrote: > Hi Yuval, > > On 8/18/19 4:21 PM, Yuval Shaia wrote: > > The virtual address that is provided by the guest in post_send and > > post_recv operations is related to the guest address space. This address > > space is unknown to the H

Re: [Qemu-devel] [PATCH 1/2] configure: Check if we can use ibv_reg_mr_iova

2019-09-01 Thread Yuval Shaia
On Sat, Aug 31, 2019 at 10:28:18PM +0300, Marcel Apfelbaum wrote: > > > On 8/18/19 4:21 PM, Yuval Shaia wrote: > > The function reg_mr_iova is an enhanced version of ibv_reg_mr function > > that can help to easly register and use guest's MRs. > > > > Add check in 'configure' phase to detect if w