Re: [Qemu-devel] [Qemu-trivial] [PATCH] misc: fix spelling

2018-11-06 Thread Laurent Vivier
On 05/11/2018 14:54, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau > --- > target/i386/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target/i386/cpu.c b/target/i386/cpu.c > index af7e9f09cc..4d2e2d9902 100644 > --- a/target/i386/cpu.c > +++ b/target

Re: [Qemu-devel] [PATCH 2/2] tpm: use loop iterator to set sts data field

2018-11-06 Thread Marc-André Lureau
Hi On Tue, Nov 6, 2018 at 9:24 AM P J P wrote: > > From: Prasad J Pandit > > When TIS request is done, set 'sts' data field across all localities. The code certainly meant to set the field across all localities. However I don't see in the "TCG PC Client Specific TPM Interface Specification (TIS

Re: [Qemu-devel] [PATCH v2 02/10] pci/shpc: rename hotplug handler callbacks

2018-11-06 Thread David Gibson
On Mon, Nov 05, 2018 at 11:20:36AM +0100, David Hildenbrand wrote: > The callbacks are also called for cold plugged devices. Drop the "hot" > to better match the actual callback names. > > While at it, also rename shpc_device_hotplug_common() to > shpc_device_plug_common(). > > Signed-off-by: Dav

Re: [Qemu-devel] [PULL 00/33] pci, pc, virtio: fixes, features

2018-11-06 Thread Thomas Huth
On 2018-11-05 19:14, Michael S. Tsirkin wrote: > The following changes since commit b2f7a038bb4c4fc5ce6b8486e8513dfd97665e2a: > > Merge remote-tracking branch 'remotes/rth/tags/pull-softfloat-20181104' > into staging (2018-11-05 10:32:49 +) > > are available in the Git repository at: > >

Re: [Qemu-devel] [PATCH 1/2] tpm: check localities index

2018-11-06 Thread Marc-André Lureau
Hi On Tue, Nov 6, 2018 at 9:25 AM P J P wrote: > > From: Prasad J Pandit > > While performing mmio device r/w operations, guest could set 'addr' > parameter such that 'locty' index exceeds TPM_TIS_NUM_LOCALITIES=5. > Add check to avoid OOB access. > Unless memory_region_init_io() is broken, and

Re: [Qemu-devel] [PATCH v2 01/10] pci/pcie: rename hotplug handler callbacks

2018-11-06 Thread David Hildenbrand
On 06.11.18 07:03, David Gibson wrote: > On Mon, Nov 05, 2018 at 11:20:35AM +0100, David Hildenbrand wrote: >> The callbacks are also called for cold plugged devices. Drop the "hot" >> to better match the actual callback names. >> >> While at it, also rename pcie_cap_slot_hotplug_common() to >> pc

Re: [Qemu-devel] [PATCH v2 03/10] s390x/pci: rename hotplug handler callbacks

2018-11-06 Thread David Gibson
On Mon, Nov 05, 2018 at 11:20:37AM +0100, David Hildenbrand wrote: > The callbacks are also called for cold plugged devices. Drop the "hot" > to better match the actual callback names. > > Signed-off-by: David Hildenbrand Reviewed-by: David Gibson > --- > hw/s390x/s390-pci-bus.c | 12 ++--

[Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device

2018-11-06 Thread Chen Zhang
Hi there, Would anyone be so kind to review my patch? Thanks. https://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg06806.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1793859 Title:

[Qemu-devel] [Bug 1017793] Re: S3 Trio64V+ support

2018-11-06 Thread Thomas Huth
Sorry, seems like nobody got interested in adding S3 emulation to QEMU within the last 6 years, so this is very unlikely going to happen. Thus I'm closing this bug ticket now. ** Changed in: qemu Status: New => Won't Fix -- You received this bug notification because you are a member of qe

Re: [Qemu-devel] [PATCH v2 1/1] include: Add a comment to explain the origin of sizes' lookup table

2018-11-06 Thread Leonid Bloch
Hi Phil, Hi Eric, (Eric, for some reason you weren't CC'd to this thread - sorry.) On 11/5/18 5:58 PM, Philippe Mathieu-Daudé wrote: > Hi Leonid, > > On 4/11/18 19:07, Leonid Bloch wrote: >> The lookup table for power-of-two sizes was added in commit 540b8492618eb >> for the purpose of having co

Re: [Qemu-devel] [PATCH v7 00/12] More fully implement ARM PMUv3

2018-11-06 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20181105185046.2802-1-aa...@os.amperecomputing.com Subject: [Qemu-devel] [PATCH v7 00/12]

Re: [Qemu-devel] [PATCH] qapi: misc: change the 'pc' to unsinged 64 in CpuInfo

2018-11-06 Thread Peter Maydell
On 2 November 2018 at 11:01, Li Qiang wrote: > When trigger a 'query-cpus' qmp, the pc is an signed value like > following: > {"arch": "x86", ... "pc": -1732653994, "halted": true,...} > It is strange. Change it to uint64_t. > > Signed-off-by: Li Qiang > --- NB: typo in subject line: should be

Re: [Qemu-devel] [Libguestfs] How to emulate block I/O timeout on qemu side?

2018-11-06 Thread Richard W.M. Jones
On Tue, Nov 06, 2018 at 02:17:46PM +0800, Dongli Zhang wrote: > On 11/06/2018 01:49 AM, Eric Blake wrote: > > On 11/2/18 3:11 AM, Dongli Zhang wrote: > >> Hi, > >> > >> Is there any way to emulate I/O timeout on qemu side (not fault > >> injection in VM kernel) without modifying qemu source code? >

Re: [Qemu-devel] [PATCH v3 1/7] qapi: use qemu_strtoi64() in parse_str

2018-11-06 Thread David Hildenbrand
On 05.11.18 21:43, Markus Armbruster wrote: > David Hildenbrand writes: > >> On 05.11.18 16:37, Markus Armbruster wrote: >>> David Hildenbrand writes: >>> On 31.10.18 18:55, Markus Armbruster wrote: > David Hildenbrand writes: > >> On 31.10.18 15:40, Markus Armbruster wrote: >>

Re: [Qemu-devel] [PATCH v3 1/7] qapi: use qemu_strtoi64() in parse_str

2018-11-06 Thread David Hildenbrand
On 05.11.18 17:48, Eric Blake wrote: > On 11/5/18 9:53 AM, David Hildenbrand wrote: > >>> When I first looked at the ranges stuff in the string input visitor, I >>> felt the urge to clean it up, then sat on my hands until it passed. >>> >>> The rest is reasonable once you understand how it works.

Re: [Qemu-devel] [PATCH for-3.1 0/2] Fix qemu_thread_atexit* for OSX

2018-11-06 Thread Paolo Bonzini
On 05/11/2018 14:55, Peter Maydell wrote: > Our current implementation of qemu_thread_atexit* is broken on OSX. > This is because it works by cerating a piece of thread-specific > data with pthread_key_create() and using the destructor function > for that data to run the notifier function passed to

Re: [Qemu-devel] [qemu-web PATCH] Use 'https://' instead of 'git://'

2018-11-06 Thread Stefan Hajnoczi
On Sun, Nov 04, 2018 at 11:23:12PM +0100, Paolo Bonzini wrote: > Jeff Cody has enabled git smart HTTP support on qemu.org. From now on HTTPS > is > the preferred protocol because it adds some protection against > man-in-the-middle when cloning a repo. > > This patch series updates git:// URLs an

Re: [Qemu-devel] [Libguestfs] How to emulate block I/O timeout on qemu side?

2018-11-06 Thread Richard W.M. Jones
On Tue, Nov 06, 2018 at 09:14:57AM +, Richard W.M. Jones wrote: > This link shows how to combine delay and error filters together: > > https://rwmj.wordpress.com/2018/11/04/nbd-graphical-viewer/ Oops, that's in a forthcoming blog post not this one. Not enough caffeine this morning. Combin

Re: [Qemu-devel] [PATCH 3/4] scsi-generic: avoid invalid access to struct when emulating block limits

2018-11-06 Thread Paolo Bonzini
On 06/11/2018 03:16, Max Reitz wrote: >> diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c >> index c5497bbea8..8fc74ef0bd 100644 >> --- a/hw/scsi/scsi-generic.c >> +++ b/hw/scsi/scsi-generic.c >> @@ -16,6 +16,7 @@ >> #include "qemu-common.h" >> #include "qemu/error-report.h" >> #incl

Re: [Qemu-devel] [PATCH 10/18] json: Define new QMP message for pvrdma

2018-11-06 Thread Yuval Shaia
On Mon, Nov 05, 2018 at 09:58:56AM -0600, Eric Blake wrote: > On 11/5/18 6:45 AM, Yuval Shaia wrote: > > pvrdma requires that the same GID attached to it will be attached to the > > backend device in the host. > > > > A new QMP messages is defined so pvrdma device can broadcast any change > > made

[Qemu-devel] How to use the 'canon-a1100' machine?

2018-11-06 Thread Thomas Huth
Hi, does anybody know whether the "canon-a1100" machine in QEMU is still usable, or rather how it can be used at all? According to http://lists.infradead.org/pipermail/barebox/2014-July/020327.html there should be support for "-serial stdio" and on https://lists.gnu.org/archive/html/qemu-devel

Re: [Qemu-devel] [PULL 03/48] qemu-timer: introduce timer attributes

2018-11-06 Thread Paolo Bonzini
On 06/11/2018 00:16, Eric Blake wrote: > On 10/18/18 3:31 PM, Paolo Bonzini wrote: >> From: Artem Pisarenko >> >> Attributes are simple flags, associated with individual timers for their >> whole lifetime.  They intended to be used to mark individual timers for >> special handling when they fire.

Re: [Qemu-devel] [PATCH 0/2] target/arm: fix some ATS* bugs

2018-11-06 Thread Fam Zheng
On Tue, 11/06 01:50, no-re...@patchew.org wrote: > ERROR: unknown option --with-gtkabi=3.0 Patchew is testing old series branches of which are heavily lagging behind. This configure option in the mingw docker testing is recently dropped, so it's a false positive. Fam > Try '/tmp/qemu-test/src/c

Re: [Qemu-devel] [PULL 08/10] memory-mapping: skip non-volatile memory regions in GuestPhysBlockList

2018-11-06 Thread Paolo Bonzini
On 05/11/2018 16:37, Laszlo Ersek wrote: > On 10/30/18 20:50, Paolo Bonzini wrote: >> From: Marc-André Lureau >> >> GuestPhysBlockList is currently used to produce dumps. Given the size >> and the typical usage of NVDIMM for storage, they are not a good idea >> to have in the dumps. We may want to

Re: [Qemu-devel] [PATCH 0/2] target/arm: fix some ATS* bugs

2018-11-06 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20181016093703.10637-1-peter.mayd...@linaro.org Subject: [Qemu-devel] [PATCH 0/2] target/a

Re: [Qemu-devel] [PULL 09/10] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add

2018-11-06 Thread Paolo Bonzini
On 05/11/2018 16:46, Laszlo Ersek wrote: > On 10/30/18 20:50, Paolo Bonzini wrote: >> Recent patches have removed ram_device and nonvolatile RAM >> from dump-guest-memory's output. Do the same for dumps >> that are extracted from a QEMU core file. >> >> Reviewed-by: Marc-André Lureau >> Signed-of

Re: [Qemu-devel] [PATCH v4] Add arm SBSA reference machine

2018-11-06 Thread Hongbo Zhang
On 6 November 2018 at 00:31, Peter Maydell wrote: > On 19 October 2018 at 09:55, Hongbo Zhang wrote: >> For the Aarch64, there is one machine 'virt', it is primarily meant to >> run on KVM and execute virtualization workloads, but we need an >> environment as faithful as possible to physical hard

Re: [Qemu-devel] [PATCH v4 03/23] hw: acpi: Export the RSDP build API

2018-11-06 Thread Paolo Bonzini
On 02/11/2018 10:56, Philippe Mathieu-Daudé wrote: >>> >>>   } >>>   /* RSDP */ >>> -static GArray * >>> +static void >>>   build_rsdp(GArray *rsdp_table, BIOSLinker *linker, unsigned >>> xsdt_tbl_offset) >>>   { >>>   AcpiRsdpDescriptor *rsdp = acpi_data_push(rsdp_table, sizeof >>> *rsdp); >>

Re: [Qemu-devel] [PATCH] hw/arm/virt: remove unused header files

2018-11-06 Thread Hongbo Zhang
On 5 November 2018 at 21:26, Auger Eric wrote: > Hi Hongbo, > > On 10/23/18 12:21 PM, Hongbo Zhang wrote: >> Well, after checking manually, the header files >> "hw/arm/primecell.h" >> "qapi/visitor.h" >> "hw/arm/smmuv3.h" >> are really not used in virt.c, still can be removed. >> >> On 22 October

Re: [Qemu-devel] How to use the 'canon-a1100' machine?

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 09:40, Thomas Huth wrote: > > Hi, > > does anybody know whether the "canon-a1100" machine in QEMU is still > usable, or rather how it can be used at all? > > According to > http://lists.infradead.org/pipermail/barebox/2014-July/020327.html there > should be support for "-ser

[Qemu-devel] [PATCH v2 1/6] move ObjectClass to typedefs.h

2018-11-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/qemu/typedefs.h | 1 + include/qom/object.h| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 3ec0e13a96..fed53f6de2 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typede

[Qemu-devel] [PATCH v2 2/6] add QemuSupportState

2018-11-06 Thread Gerd Hoffmann
Indicates support state for something (device, backend, subsystem, ...) in qemu. Add QemuSupportState field to ObjectClass. Add some support code. TODO: wire up to qom-list-types Signed-off-by: Gerd Hoffmann --- include/qemu/support-state.h | 17 + include/qom/object.h

[Qemu-devel] [PATCH v2 0/6] Introducing QemuSupportState

2018-11-06 Thread Gerd Hoffmann
Trying to fill the need to be more finegrained on support status. v2: - reduce the number of support states, add documentation for them. - move QemuSupportState to ObjectClass, to simplify introspection integration (not done yet). - add UsageHints. Gerd Hoffmann (6): move ObjectClass to t

Re: [Qemu-devel] [PATCH v5 03/24] hw: acpi: The RSDP build API can return void

2018-11-06 Thread Paolo Bonzini
On 05/11/2018 02:40, Samuel Ortiz wrote: > /* RSDP */ > -static GArray * > +static void > build_rsdp(GArray *rsdp_table, BIOSLinker *linker, unsigned xsdt_tbl_offset) > { > AcpiRsdpDescriptor *rsdp = acpi_data_push(rsdp_table, sizeof *rsdp); > @@ -392,8 +392,6 @@ build_rsdp(GArray *rsdp_tab

[Qemu-devel] [PATCH v2 6/6] add UsageHints to QemuSupportState

2018-11-06 Thread Gerd Hoffmann
So we can add device usage recommendations to devices, independant from support state. Signed-off-by: Gerd Hoffmann --- include/qemu/support-state.h | 1 + qapi/common.json | 29 + 2 files changed, 30 insertions(+) diff --git a/include/qemu/support-state

[Qemu-devel] [PATCH v2 5/6] tag cirrus as obsolete

2018-11-06 Thread Gerd Hoffmann
Standard VGA should be used instead. Signed-off-by: Gerd Hoffmann --- hw/display/cirrus_vga.c | 3 +++ hw/display/cirrus_vga_isa.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index d9b854d74d..8474415687 100644 --- a/hw/display/ci

[Qemu-devel] [PATCH v2 4/6] Warn on obsolete and deprecated devices.

2018-11-06 Thread Gerd Hoffmann
Print a warning for deprecated and obsolete devices. Also add support state to device listing. Signed-off-by: Gerd Hoffmann --- hw/core/qdev.c | 8 +++- qdev-monitor.c | 9 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 6b3cc55b

[Qemu-devel] [PATCH v2 3/6] Use QemuSupportState for machine types.

2018-11-06 Thread Gerd Hoffmann
Switch over the current deprecation_reason users to use the QemuSupportState field in ObjectClass instead. Signed-off-by: Gerd Hoffmann --- include/hw/boards.h | 3 --- hw/i386/pc_piix.c | 5 - hw/ppc/prep.c | 5 - vl.c| 7 --- 4 files changed, 12 insertions(+

Re: [Qemu-devel] [PATCH v5 03/24] hw: acpi: The RSDP build API can return void

2018-11-06 Thread Samuel Ortiz
On Tue, Nov 06, 2018 at 11:23:39AM +0100, Paolo Bonzini wrote: > On 05/11/2018 02:40, Samuel Ortiz wrote: > > /* RSDP */ > > -static GArray * > > +static void > > build_rsdp(GArray *rsdp_table, BIOSLinker *linker, unsigned > > xsdt_tbl_offset) > > { > > AcpiRsdpDescriptor *rsdp = acpi_data

Re: [Qemu-devel] [Qemu-block] [PATCH 4/7] qcow2: refactor decompress_buffer

2018-11-06 Thread Alberto Garcia
On Thu 01 Nov 2018 07:27:35 PM CET, Vladimir Sementsov-Ogievskiy wrote: > - make it look more like a pair of qcow2_compress - rename the function > and its parameters > - drop extra out_len variable, check filling of output buffer by strm > structure itself > - fix code style > - add some docum

Re: [Qemu-devel] [PULL 0/6] final s390x patches for -rc0

2018-11-06 Thread Peter Maydell
On 5 November 2018 at 16:43, Cornelia Huck wrote: > The following changes since commit 7d56239f159afc2e7bd42623947e56ba48f37836: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20181102' into staging (2018-11-02 > 17:17:12 +) > > are available in the Git repositor

Re: [Qemu-devel] How to use the 'canon-a1100' machine?

2018-11-06 Thread Thomas Huth
On 2018-11-06 11:32, Peter Maydell wrote: > On 6 November 2018 at 09:40, Thomas Huth wrote: >> >> Hi, >> >> does anybody know whether the "canon-a1100" machine in QEMU is still >> usable, or rather how it can be used at all? >> >> According to >> http://lists.infradead.org/pipermail/barebox/2014-

[Qemu-devel] [PATCH v4 02/16] gdbstub: introduce GDB processes

2018-11-06 Thread Luc Michel
Add a structure GDBProcess that represent processes from the GDB semantic point of view. CPUs can be split into different processes, by grouping them under different cpu-cluster objects. Each occurrence of a cpu-cluster object implies the existence of the corresponding process in the GDB stub. Th

[Qemu-devel] [PATCH v4 10/16] gdbstub: add multiprocess support to 'D' packets

2018-11-06 Thread Luc Michel
'D' packets are used by GDB to detach from a process. In multiprocess mode, the PID to detach from is sent in the request. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé --- gdbstub.c | 60 --- 1 file changed, 53 insertions(+),

[Qemu-devel] [PATCH v4 07/16] gdbstub: add multiprocess support to (f|s)ThreadInfo and ThreadExtraInfo

2018-11-06 Thread Luc Michel
Change the thread info related packets handling to support multiprocess extension. Add the CPUs class name in the extra info to help differentiate them in multiprocess mode. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé --- gdbstub.c | 35 +-- 1

[Qemu-devel] [PATCH v4 09/16] gdbstub: add multiprocess support to gdb_vm_state_change()

2018-11-06 Thread Luc Michel
Add support for multiprocess extension in gdb_vm_state_change() function. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé --- gdbstub.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index aae3cce01a..decf56c610 100644 --

[Qemu-devel] [PATCH v4 06/16] gdbstub: add multiprocess support to 'sC' packets

2018-11-06 Thread Luc Michel
Change the sC packet handling to support the multiprocess extension. Instead of returning the first thread, we return the first thread of the current process. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- gdbstub.c | 11 --- 1 file chan

[Qemu-devel] [PATCH v4 01/16] hw/cpu: introduce CPU clusters

2018-11-06 Thread Luc Michel
This commit adds the cpu-cluster type. It aims at gathering CPUs from the same cluster in a machine. For now it only has a `cluster-id` property. Signed-off-by: Luc Michel Reviewed-by: Alistair Francis --- include/hw/cpu/cluster.h | 38 ++ hw/cpu/cluster.c | 59

[Qemu-devel] [PATCH v4 04/16] gdbstub: add multiprocess support to 'H' and 'T' packets

2018-11-06 Thread Luc Michel
Add a couple of helper functions to cope with GDB threads and processes. The gdb_get_process() function looks for a process given a pid. The gdb_get_cpu() function returns the CPU corresponding to the (pid, tid) pair given as parameters. The read_thread_id() function parses the thread-id sent by

[Qemu-devel] [PATCH v4 05/16] gdbstub: add multiprocess support to vCont packets

2018-11-06 Thread Luc Michel
Add the gdb_first_cpu() and gdb_next_cpu() to iterate over all the CPUs in currently attached processes. Add the gdb_first_cpu_in_process() and gdb_next_cpu_in_process() to iterate over CPUs of a given process. Use them to add multiprocess extension support to vCont packets. Signed-off-by: Luc M

[Qemu-devel] [PATCH v4 03/16] gdbstub: add multiprocess support to '?' packets

2018-11-06 Thread Luc Michel
The gdb_get_cpu_pid() function does the PID lookup for the given CPU. It checks if the CPU is a direct child of a CPU cluster. If it is, the returned PID is the cluster ID plus one (cluster IDs start at 0, GDB PIDs at 1). When the CPU is not a child of such a container, the PID of the first process

[Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension

2018-11-06 Thread Luc Michel
changes since v3: - patch 1cpu_cluster.h: remove QEMU_ from the multiple includes guard #ifdef/#define [Alistair] - patch 1cpu_cluster.c: include osdep.h first [Alistair] - patch 1use uint64_t for cluster ID for prosperity :) [Philippe] - patch 1auto-assign

[Qemu-devel] [PATCH v4 15/16] gdbstub: add multiprocess extension support

2018-11-06 Thread Luc Michel
Add multiprocess extension support by enabling multiprocess mode when the peer requests it, and by replying that we actually support it in the qSupported reply packet. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis --- gdbstub.c | 6 ++ 1 file chan

[Qemu-devel] [PATCH v4 16/16] arm/xlnx-zynqmp: put APUs and RPUs in separate CPU clusters

2018-11-06 Thread Luc Michel
Create two separate CPU clusters for APUs and RPUs. Signed-off-by: Luc Michel --- include/hw/arm/xlnx-zynqmp.h | 3 +++ hw/arm/xlnx-zynqmp.c | 21 + 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zyn

[Qemu-devel] [PATCH v4 08/16] gdbstub: add multiprocess support to Xfer:features:read:

2018-11-06 Thread Luc Michel
Change the Xfer:features:read: packet handling to support the multiprocess extension. This packet is used to request the XML description of the CPU. In multiprocess mode, different descriptions can be sent for different processes. This function now takes the process to send the description for as

[Qemu-devel] [PATCH v4 12/16] gdbstub: add support for vAttach packets

2018-11-06 Thread Luc Michel
Add support for the vAttach packets. In multiprocess mode, GDB sends them to attach to additional processes. Signed-off-by: Luc Michel --- gdbstub.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index 4132227092..ba365808db 100644

[Qemu-devel] [PATCH v4 13/16] gdbstub: processes initialization on new peer connection

2018-11-06 Thread Luc Michel
When a new connection is established, we set the first process to be attached, and the others detached. The first CPU of the first process is selected as the current CPU. Signed-off-by: Luc Michel Reviewed-by: Alistair Francis --- gdbstub.c | 20 +++- 1 file changed, 15 insertio

[Qemu-devel] [PATCH v4 11/16] gdbstub: add support for extended mode packet

2018-11-06 Thread Luc Michel
Add support for the '!' extended mode packet. This is required for the multiprocess extension. Signed-off-by: Luc Michel --- gdbstub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index bd4895ac0a..4132227092 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1294,10 +129

[Qemu-devel] [PATCH v4 14/16] gdbstub: gdb_set_stop_cpu: ignore request when process is not attached

2018-11-06 Thread Luc Michel
When gdb_set_stop_cpu() is called with a CPU associated to a process currently not attached by the GDB client, return without modifying the stop CPU. Otherwise, GDB gets confused if it receives packets with a thread-id it does not know about. Signed-off-by: Luc Michel Acked-by: Alistair Francis

Re: [Qemu-devel] [PULL 00/33] pci, pc, virtio: fixes, features

2018-11-06 Thread Michael S. Tsirkin
On Tue, Nov 06, 2018 at 09:18:49AM +0100, Thomas Huth wrote: > On 2018-11-05 19:14, Michael S. Tsirkin wrote: > > The following changes since commit b2f7a038bb4c4fc5ce6b8486e8513dfd97665e2a: > > > > Merge remote-tracking branch 'remotes/rth/tags/pull-softfloat-20181104' > > into staging (2018-1

Re: [Qemu-devel] [PATCH v2 1/1] include: Add a comment to explain the origin of sizes' lookup table

2018-11-06 Thread Kevin Wolf
Am 06.11.2018 um 09:56 hat Leonid Bloch geschrieben: > Hi Phil, Hi Eric, > > (Eric, for some reason you weren't CC'd to this thread - sorry.) > > On 11/5/18 5:58 PM, Philippe Mathieu-Daudé wrote: > > Hi Leonid, > > > > On 4/11/18 19:07, Leonid Bloch wrote: > >> The lookup table for power-of-two

Re: [Qemu-devel] [PATCH v2 2/2] tests/test-char: add muxed chardev testing for open/close

2018-11-06 Thread Marc-André Lureau
Hi On Mon, Nov 5, 2018 at 4:47 PM Artem Pisarenko wrote: > > Validate that frontend callbacks for CHR_EVENT_OPENED/CHR_EVENT_CLOSED > events are being issued when expected and in strictly pairing order. > > Signed-off-by: Artem Pisarenko > --- > tests/test-char.c | 80 > +++

Re: [Qemu-devel] [PULL 00/33] pci, pc, virtio: fixes, features

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 11:07, Michael S. Tsirkin wrote: > On Tue, Nov 06, 2018 at 09:18:49AM +0100, Thomas Huth wrote: >> On 2018-11-05 19:14, Michael S. Tsirkin wrote: >> > The following changes since commit >> > b2f7a038bb4c4fc5ce6b8486e8513dfd97665e2a: >> > >> > Merge remote-tracking branch '

[Qemu-devel] [PULL 0/1] Seabios 20181106 patches

2018-11-06 Thread Gerd Hoffmann
The following changes since commit 7d56239f159afc2e7bd42623947e56ba48f37836: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20181102' into staging (2018-11-02 17:17:12 +) are available in the git repository at: git://git.kraxel.org/qemu tags/seabios-201

Re: [Qemu-devel] [PATCH 1/2] The discard flag for block stream operation

2018-11-06 Thread Andrey Shinkevich
OK, David, I will implement that with the next series. Kindly, Andrey Shinkevich On 31.10.2018 20:38, Dr. David Alan Gilbert wrote: > * Andrey Shinkevich (andrey.shinkev...@virtuozzo.com) wrote: >> Adding a parameter to QMP block-stream command to allow discarding >> blocks in the backing chai

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] The discard flag for block stream operation

2018-11-06 Thread Andrey Shinkevich
Berto, Well noted about the "after implementation". Kindly, Andrey Shinkevich On 05.11.2018 19:08, Alberto Garcia wrote: > On Wed 31 Oct 2018 05:47:19 PM CET, Andrey Shinkevich > wrote: >> Adding a parameter to QMP block-stream command to allow discarding >> blocks in the backing chain while

Re: [Qemu-devel] [PATCH v2 1/2] chardev: fix mess in OPENED/CLOSED events when muxed

2018-11-06 Thread Marc-André Lureau
Hi On Mon, Nov 5, 2018 at 4:46 PM Artem Pisarenko wrote: > > When chardev is multiplexed (mux=on) there are a lot of cases, when > CHR_EVENT_OPENED/CHR_EVENT_CLOSED events pairing (expected from > frontend side) is broken. There are either generation of multiple > repeated or extra CHR_EVENT_OPEN

[Qemu-devel] [PULL 5/5] target/arm: Fix ATS1Hx instructions

2018-11-06 Thread Peter Maydell
ATS1HR and ATS1HW (which allow AArch32 EL2 to do address translations on the EL2 translation regime) were implemented in commit 14db7fe09a2c8. However, we got them wrong: these should do stage 1 address translations as defined for NS-EL2, which is ARMMMUIdx_S1E2. We were incorrectly making them per

[Qemu-devel] [PULL 2/5] milkymist: Check for failure trying to load BIOS image

2018-11-06 Thread Peter Maydell
Check the return value from load_image_targphys(), which tells us whether our attempt to load the BIOS image into RAM failed. (Spotted by Coverity, CID 1190305.) Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael Walle Message-id: 20181030170032.1844-1-peter.mayd

[Qemu-devel] [PULL 0/5] target-arm queue

2018-11-06 Thread Peter Maydell
#x27; into staging (2018-11-06 09:10:46 +) are available in the Git repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20181106 for you to fetch changes up to 23463e0e4aeb2f0a9c60549a2c163f4adc0b8512: target/arm: Fix ATS1Hx instructions (2018-11-06 11:3

[Qemu-devel] [PULL 1/5] target/arm: Remove can't-happen if() from handle_vec_simd_shli()

2018-11-06 Thread Peter Maydell
In handle_vec_simd_shli() we have a check: if (size > 3 && !is_q) { unallocated_encoding(s); return; } However this can never be true, because we calculate int size = 32 - clz32(immh) - 1; where immh is a 4 bit field which we know cannot be all-zeroes. So the clz32()

[Qemu-devel] [PULL 4/5] target/arm: Set S and PTW in 64-bit PAR format

2018-11-06 Thread Peter Maydell
In do_ats_write() we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization". Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUF

[Qemu-devel] [PULL 3/5] hw/arm/exynos4210: Zero memory allocated for Exynos4210State

2018-11-06 Thread Peter Maydell
In exynos4210_init() we allocate memory for an Exynos4210State struct. Generally devices can assume that the memory allocated for their state struct is zero-initialized; we broke that assumption here by using g_new(). Use g_new0() instead. (In particular, some code assumes that the various irq arra

Re: [Qemu-devel] [PATCH v3] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-11-06 Thread Peter Maydell
On 5 November 2018 at 22:44, Brad Smith wrote: > ping. > Thanks for the ping, applied to master for rc0. -- PMM

Re: [Qemu-devel] [PULL v2 2/5] tests/tpm: Display if swtpm is not found or --tpm2 not supported

2018-11-06 Thread Thomas Huth
On 2018-10-30 22:47, Stefan Berger wrote: > From: Marc-André Lureau > > If swtpm is not found in $PATH or --tpm2 isn't supported, we display > this in the test log. We cannot mark the test as skipped due to a bug in > certain versions of the gtester environment that interprets a skipped test > as

[Qemu-devel] aarch32 acquire/release vs mttcg

2018-11-06 Thread Peter Maydell
Looking through code I noticed that in target/arm/translate.c there is the following comment in the decode for the load-acquire/store-release instructions: /* Since the emulation does not have barriers, the acquire/release semantics need no special handling */ This is out

[Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread P J P
From: Prasad J Pandit While accessing script ram[2048] via 'lsi_ram_read/write' routines, 'addr' could exceed the ram range. Mask high order bits to avoid OOB access. Reported-by: Mark Kanda Signed-off-by: Prasad J Pandit --- hw/scsi/lsi53c895a.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 11:53, P J P wrote: > From: Prasad J Pandit > > While accessing script ram[2048] via 'lsi_ram_read/write' routines, > 'addr' could exceed the ram range. Mask high order bits to avoid > OOB access. > > Reported-by: Mark Kanda > Signed-off-by: Prasad J Pandit > --- > hw/scs

[Qemu-devel] [PATCH] block/nvme: call blk_drain in NVMe reset code to avoid lockups

2018-11-06 Thread Igor Druzhinin
When blk_flush called in NVMe reset path S/C queues are already freed which means that re-entering AIO handling loop having some IO requests unfinished will lockup or crash as their SG structures being potentially reused. Call blk_drain before freeing the queues to avoid this nasty scenario. Signe

[Qemu-devel] [PATCH v2 0/5] migration: improve multithreads

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong Changelog in v2: These changes are based on Paolo's suggestion: 1) rename the lockless multithreads model to threaded workqueue 2) hugely improve the internal design, that make all the request be a large array, properly partition it, assign requests to threads respectiv

[Qemu-devel] [PATCH v2 2/5] util: introduce threaded workqueue

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong This modules implements the lockless and efficient threaded workqueue. Three abstracted objects are used in this module: - Request. It not only contains the data that the workqueue fetches out to finish the request but also offers the space to save the result af

[Qemu-devel] [PATCH v2 5/5] tests: add threaded-workqueue-bench

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong It's the benhcmark of threaded-workqueue, also it's a good example to show how threaded-workqueue is used Signed-off-by: Xiao Guangrong --- tests/Makefile.include | 5 +- tests/threaded-workqueue-bench.c | 256 +++ 2 files ch

[Qemu-devel] [PATCH v2 4/5] migration: use threaded workqueue for decompression

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong Adapt the compression code to the threaded workqueue Signed-off-by: Xiao Guangrong --- migration/ram.c | 225 1 file changed, 81 insertions(+), 144 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index a

[Qemu-devel] [PATCH v2 1/5] bitops: introduce change_bit_atomic

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong It will be used by threaded workqueue Signed-off-by: Xiao Guangrong --- include/qemu/bitops.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 3f0926cf40..c522958852 100644 --- a/include/qemu/bitops.h ++

Re: [Qemu-devel] [PATCH] gtk: Fix mouse offset in scaled gtk-gl display for VFIO/iGVT-g DMA Buf mode

2018-11-06 Thread Gerd Hoffmann
On Wed, Oct 31, 2018 at 06:24:56AM +, Chen Zhang wrote: > The issue was reported as in https://bugs.launchpad.net/qemu/+bug/1793859 > > When an OpenGL accelerated GTK window is used for iGVT-g DMA Buf device, > window scaling would cause guest cursor to move in undesirable velocity. > > To fi

[Qemu-devel] [PATCH v2 3/5] migration: use threaded workqueue for compression

2018-11-06 Thread guangrong . xiao
From: Xiao Guangrong Adapt the compression code to the threaded workqueue Signed-off-by: Xiao Guangrong --- migration/ram.c | 313 +--- 1 file changed, 115 insertions(+), 198 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread Paolo Bonzini
On 06/11/2018 13:03, Peter Maydell wrote: > When can this masking have any effect? These functions are > the read and write ops for lsi_ram_ops, which we register with > memory_region_init_io(&s->ram_io, OBJECT(s), &lsi_ram_ops, s, > "lsi-ram", 0x2000); > which specifi

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread li qiang
在 2018/11/6 20:03, Peter Maydell 写道: > On 6 November 2018 at 11:53, P J P wrote: >> From: Prasad J Pandit >> >> While accessing script ram[2048] via 'lsi_ram_read/write' routines, >> 'addr' could exceed the ram range. Mask high order bits to avoid >> OOB access. >> >> Reported-by: Mark Kanda >>

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread Paolo Bonzini
On 06/11/2018 13:27, li qiang wrote: > The addr is 0~0x1fff, but when addr is at the near the end ,for example > 0x1fffe, the add>>2 can be 2047 > > and as script_ram is a uint32_t and so s->script_ram[addr >> 2] can read > out of the script_ram. How so? s->script_ram has size 2048, it's okay

[Qemu-devel] [PATCH v3 0/2] chardev: fix mess in OPENED/CLOSED events when muxed

2018-11-06 Thread Artem Pisarenko
This issue actually more complex. Idea of generating events from inside function called '*_set_handlers' isn't good, at least its implicit nature, and especially a fact, that function decides about open state (see 'fe_open' variable), but generates event only in one direction. Combined with 'mu

Re: [Qemu-devel] [PATCH v2 2/2] tests/test-char: add muxed chardev testing for open/close

2018-11-06 Thread Artem Pisarenko
> this is unnecessary change, I can drop on commit Oops, didn't noticed your message before sent v3.

[Qemu-devel] [PATCH v3 1/2] chardev: fix mess in OPENED/CLOSED events when muxed

2018-11-06 Thread Artem Pisarenko
When chardev is multiplexed (mux=on) there are a lot of cases where CHR_EVENT_OPENED/CHR_EVENT_CLOSED events pairing (expected from frontend side) is broken. There are either generation of multiple repeated or extra CHR_EVENT_OPENED events, or CHR_EVENT_CLOSED just isn't generated at all. This is m

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 12:38, li qiang wrote: > > 在 2018/11/6 20:28, Paolo Bonzini 写道: >> On 06/11/2018 13:27, li qiang wrote: >>> The addr is 0~0x1fff, but when addr is at the near the end ,for example >>> 0x1fffe, the add>>2 can be 2047 >>> >>> and as script_ram is a uint32_t and so s->script_ram

[Qemu-devel] [PATCH v3 2/2] tests/test-char: add muxed chardev testing for open/close

2018-11-06 Thread Artem Pisarenko
Validate that frontend callbacks for CHR_EVENT_OPENED/CHR_EVENT_CLOSED events are being issued when expected and in strictly pairing order. Signed-off-by: Artem Pisarenko --- tests/test-char.c | 80 +-- 1 file changed, 78 insertions(+), 2 delet

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 12:27, li qiang wrote: > The addr is 0~0x1fff, but when addr is at the near the end ,for example > 0x1fffe, the add>>2 can be 2047 > > and as script_ram is a uint32_t and so s->script_ram[addr >> 2] can read > out of the script_ram. But script_ram is declared as uint32_t s

Re: [Qemu-devel] [PATCH] lsi53c895a: check script ram address value

2018-11-06 Thread li qiang
在 2018/11/6 20:28, Paolo Bonzini 写道: > On 06/11/2018 13:27, li qiang wrote: >> The addr is 0~0x1fff, but when addr is at the near the end ,for example >> 0x1fffe, the add>>2 can be 2047 >> >> and as script_ram is a uint32_t and so s->script_ram[addr >> 2] can read >> out of the script_ram. > How s

Re: [Qemu-devel] [PATCH] target/ppc: fix mtmsr instruction for icount

2018-11-06 Thread 'David Gibson'
On Tue, Nov 06, 2018 at 09:10:45AM +0300, Pavel Dovgalyuk wrote: > > From: David Gibson [mailto:da...@gibson.dropbear.id.au] > > On Tue, Oct 30, 2018 at 12:30:31PM +0300, Pavel Dovgalyuk wrote: > > > This patch fixes processing of mtmsr instructions in icount mode. > > > In this mode writing to int

Re: [Qemu-devel] [PATCH] ivshmem: fix memory backend leak

2018-11-06 Thread Paolo Bonzini
On 01/11/2018 11:44, Igor Mammedov wrote: > object_new() returns a new backend with refcount == 1 and > then later object_property_add_child() increases refcount to 2 > So when ivshmem is desroyed, the backend it has created isn't > destroyed along with it as children cleanup will bring > backend's

Re: [Qemu-devel] [PULL 00/33] pci, pc, virtio: fixes, features

2018-11-06 Thread Peter Maydell
On 6 November 2018 at 11:20, Peter Maydell wrote: > On 6 November 2018 at 11:07, Michael S. Tsirkin wrote: >> On Tue, Nov 06, 2018 at 09:18:49AM +0100, Thomas Huth wrote: >>> On 2018-11-05 19:14, Michael S. Tsirkin wrote: >>> > The following changes since commit >>> > b2f7a038bb4c4fc5ce6b8486e85

Re: [Qemu-devel] [PATCH v3] file-posix: Use error API properly

2018-11-06 Thread Kevin Wolf
Am 01.11.2018 um 07:29 hat Fam Zheng geschrieben: > Use error_report for situations that affect user operation (i.e. we're > actually returning error), and warn_report/warn_report_err when some > less critical error happened but the user operation can still carry on. > > For raw_normalize_devicep

  1   2   3   >