[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

[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

[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 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

[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 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 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.

[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(+),

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 >>

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

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

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 =

[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

[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

[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 ---

[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

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

[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

[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 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 +++

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

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] [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 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

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 >>

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]

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

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

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.

[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

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 > >

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" >>

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.

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

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

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 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] [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] 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] [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

[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

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

[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:

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

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 >>

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,

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:

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

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 > +++

<    1   2   3