[Bug 1846451] Re: K800 keyboard no longer works when attached to a VM

2019-10-15 Thread Gerd Hoffmann
https://patchwork.ozlabs.org/patch/1176777/ -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1846451 Title: K800 keyboard no longer works when attached to a VM Status in QEMU: New Bug description:

[Bug 1846451] Re: K800 keyboard no longer works when attached to a VM

2019-10-15 Thread Rokas Kupstys
Could you please clarify how this config is supposed to be used? I would test your patch. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1846451 Title: K800 keyboard no longer works when attached to

Re: [PATCH v4 1/8] target/mips: Clean up helper.c

2019-10-15 Thread Markus Armbruster
Aleksandar Markovic writes: > --07f6800594da656e > Content-Type: text/plain; charset="UTF-8" > > On Monday, October 14, 2019, Markus Armbruster wrote: > >> Aleksandar Markovic writes: >> >> > From: Aleksandar Markovic >> > >> > Mostly fix errors and warnings reported by 'checkpatch

[PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Peter Xu
It was "int" and used as 32bits fields (see save_section_header()). It's unsafe already because sizeof(int) could be 2 on i386, I think. So at least uint32_t would suite more. While it also uses "-1" as a placeholder of "we want to generate the instance ID automatically". Hence a more proper value

[PATCH 0/2] apic: Fix migration breakage of >255 vcpus

2019-10-15 Thread Peter Xu
I'm not very certain, but... it seems to be broken starting from when x2apic was introduced in QEMU, until now. Please review, thanks. Peter Xu (2): migration: Boost SaveStateEntry.instance_id to 64 bits apic: Use 32bit APIC ID for migration instance ID hw/intc/apic_common.c| 2 +-

[PATCH 2/2] apic: Use 32bit APIC ID for migration instance ID

2019-10-15 Thread Peter Xu
Migration is silently broken now with x2apic config like this: -smp 200,maxcpus=288,sockets=2,cores=72,threads=2 \ -device intel-iommu,intremap=on,eim=on After migration, the guest kernel could hang at anything, due to x2apic bit not migrated correctly in IA32_APIC_BASE on some vcpus, s

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Daniel P . Berrangé
On Sat, Oct 05, 2019 at 02:33:34PM +0100, Peter Maydell wrote: > On Sat, 5 Oct 2019 at 11:21, Lucien Murray-Pitts > wrote: > > Whilst working on a m68k patch I noticed that the capstone in use > > today (3.0) doesnt support the M68K and thus a hand turned disasm > > function is used. > > > > The n

Re: [PATCH 2/2] apic: Use 32bit APIC ID for migration instance ID

2019-10-15 Thread Juan Quintela
Peter Xu wrote: > Migration is silently broken now with x2apic config like this: > > -smp 200,maxcpus=288,sockets=2,cores=72,threads=2 \ > -device intel-iommu,intremap=on,eim=on > > After migration, the guest kernel could hang at anything, due to > x2apic bit not migrated correctly in IA

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Juan Quintela
Peter Xu wrote: > It was "int" and used as 32bits fields (see save_section_header()). > It's unsafe already because sizeof(int) could be 2 on i386, i386 is 32bits, so int is 32bits O:-) I really hope that we would never, ever, need a 64bits instance id. It would mean that we have more than 2.000.

[PATCH v3 0/2] RTC support for QEMU RISC-V virt machine

2019-10-15 Thread Anup Patel
This series adds RTC device to QEMU RISC-V virt machine. We have selected Goldfish RTC device model for this. It's a pretty simple synthetic device with few MMIO registers and no dependency external clock. The driver for Goldfish RTC is already available in Linux so we just need to enable it in Kco

[PATCH v3 1/2] hw: timer: Add Goldfish RTC device

2019-10-15 Thread Anup Patel
This patch adds model for Google Goldfish virtual platform RTC device. We will be adding Goldfish RTC device to the QEMU RISC-V virt machine for providing real date-time to Guest Linux. The corresponding Linux driver for Goldfish RTC device is already available in upstream Linux. For now, VM migr

[PATCH v3 2/2] riscv: virt: Use Goldfish RTC device

2019-10-15 Thread Anup Patel
We extend QEMU RISC-V virt machine by adding Goldfish RTC device to it. This will allow Guest Linux to sync it's local date/time with Host date/time via RTC device. Signed-off-by: Anup Patel --- hw/riscv/Kconfig| 1 + hw/riscv/virt.c | 15 +++ include/hw/riscv/virt.h

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Thomas Huth
On 15/10/2019 10.27, Daniel P. Berrangé wrote: > On Sat, Oct 05, 2019 at 02:33:34PM +0100, Peter Maydell wrote: >> On Sat, 5 Oct 2019 at 11:21, Lucien Murray-Pitts >> wrote: >>> Whilst working on a m68k patch I noticed that the capstone in use >>> today (3.0) doesnt support the M68K and thus a han

Re: [PATCH v4 2/3] target/riscv: Expose "priv" register for GDB for reads

2019-10-15 Thread Bin Meng
On Mon, Oct 14, 2019 at 11:53 PM Jonathan Behrens wrote: > > This patch enables a debugger to read the current privilege level via a > virtual > "priv" register. When compiled with CONFIG_USER_ONLY the register is still > visible but always reports the value zero. > > Signed-off-by: Jonathan Behr

Re: [PULL 01/19] util/hbitmap: strict hbitmap_reset

2019-10-15 Thread Kevin Wolf
Am 14.10.2019 um 20:10 hat John Snow geschrieben: > > > On 10/11/19 7:18 PM, John Snow wrote: > > > > > > On 10/11/19 5:48 PM, Eric Blake wrote: > >> On 10/11/19 4:25 PM, John Snow wrote: > >>> From: Vladimir Sementsov-Ogievskiy > >>> > >>> hbitmap_reset has an unobvious property: it rounds re

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Juan Quintela
Peter Xu wrote: > It was "int" and used as 32bits fields (see save_section_header()). > It's unsafe already because sizeof(int) could be 2 on i386, I think. > So at least uint32_t would suite more. While it also uses "-1" as a > placeholder of "we want to generate the instance ID automatically".

Re: [PULL 1/2] trace: add --group=all to tracing.txt

2019-10-15 Thread Stefan Hajnoczi
On Mon, Oct 14, 2019 at 11:08:25AM +0200, Philippe Mathieu-Daudé wrote: > Hi Stefan, > > On 10/14/19 10:57 AM, Stefan Hajnoczi wrote: > > tracetool needs to know the group name ("all", "root", or a specific > > subdirectory). Also remove the stdin redirection because tracetool.py > > needs the pa

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Daniel P . Berrangé
On Tue, Oct 15, 2019 at 10:36:40AM +0200, Thomas Huth wrote: > On 15/10/2019 10.27, Daniel P. Berrangé wrote: > > On Sat, Oct 05, 2019 at 02:33:34PM +0100, Peter Maydell wrote: > >> On Sat, 5 Oct 2019 at 11:21, Lucien Murray-Pitts > >> wrote: > >>> Whilst working on a m68k patch I noticed that the

[PULL v2 0/2] Tracing patches

2019-10-15 Thread Stefan Hajnoczi
The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100) are available in the Git repository at: https://github.com/stefanha/qemu.git tags/tracing-pull-reques

[PULL v2 2/2] trace: avoid "is" with a literal Python 3.8 warnings

2019-10-15 Thread Stefan Hajnoczi
The following statement produces a SyntaxWarning with Python 3.8: if len(format) is 0: scripts/tracetool/__init__.py:459: SyntaxWarning: "is" with a literal. Did you mean "=="? Use the conventional len(x) == 0 syntax instead. Reported-by: Daniel P. Berrangé Reviewed-by: Daniel P. Berrangé

Re: [PULL 1/1] test-bdrv-drain: fix iothread_join() hang

2019-10-15 Thread Stefan Hajnoczi
On Mon, Oct 14, 2019 at 01:11:41PM +0200, Paolo Bonzini wrote: > On 14/10/19 10:52, Stefan Hajnoczi wrote: > > tests/test-bdrv-drain can hang in tests/iothread.c:iothread_run(): > > > > while (!atomic_read(&iothread->stopping)) { > > aio_poll(iothread->ctx, true); > > } > > > > The ioth

[PULL v2 1/2] trace: add --group=all to tracing.txt

2019-10-15 Thread Stefan Hajnoczi
tracetool needs to know the group name ("all", "root", or a specific subdirectory). Also remove the stdin redirection because tracetool.py needs the path to the trace-events file. Update the documentation. Fixes: 2098c56a9bc5901e145fa5d4759f075808811685 ("trace: move setting of group name

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > Peter Xu wrote: > > It was "int" and used as 32bits fields (see save_section_header()). > > It's unsafe already because sizeof(int) could be 2 on i386, I think. > > So at least uint32_t would suite more. While it also uses "-1" as a > > placeholder o

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Marc-André Lureau
Hi On Tue, Oct 15, 2019 at 10:48 AM Daniel P. Berrangé wrote: > > On Tue, Oct 15, 2019 at 10:36:40AM +0200, Thomas Huth wrote: > > On 15/10/2019 10.27, Daniel P. Berrangé wrote: > > > On Sat, Oct 05, 2019 at 02:33:34PM +0100, Peter Maydell wrote: > > >> On Sat, 5 Oct 2019 at 11:21, Lucien Murray-

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Daniel P . Berrangé
On Tue, Oct 15, 2019 at 11:02:43AM +0200, Marc-André Lureau wrote: > Hi > > On Tue, Oct 15, 2019 at 10:48 AM Daniel P. Berrangé > wrote: > > > > On Tue, Oct 15, 2019 at 10:36:40AM +0200, Thomas Huth wrote: > > > On 15/10/2019 10.27, Daniel P. Berrangé wrote: > > > > On Sat, Oct 05, 2019 at 02:33

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

2019-10-15 Thread Greg Kurz
On Tue, 08 Oct 2019 14:05:28 +0200 Christian Schoenebeck wrote: > > I wonder though whether virtio-fs suffers from the same file ID collisions > problem when sharing multiple file systems. > I gave a try and it seems that virtio-fs might expose the inode numbers from different devices in the

Re: [PATCH 2/2] apic: Use 32bit APIC ID for migration instance ID

2019-10-15 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > Migration is silently broken now with x2apic config like this: > > -smp 200,maxcpus=288,sockets=2,cores=72,threads=2 \ > -device intel-iommu,intremap=on,eim=on > > After migration, the guest kernel could hang at anything, due to > x2apic bit not m

Re: [PULL v2 0/2] Tracing patches

2019-10-15 Thread Philippe Mathieu-Daudé
On 10/15/19 10:49 AM, Stefan Hajnoczi wrote: The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100) are available in the Git repository at: https://gith

Re: [PATCH v3 07/10] migration: add new migration state wait-unplug

2019-10-15 Thread Jens Freimann
On Fri, Oct 11, 2019 at 06:11:33PM +0100, Dr. David Alan Gilbert wrote: * Jens Freimann (jfreim...@redhat.com) wrote: This patch adds a new migration state called wait-unplug. It is entered after the SETUP state and will transition into ACTIVE once all devices were succesfully unplugged from th

Re: [PATCH v5 1/9] target/arm/monitor: Introduce qmp_query_cpu_model_expansion

2019-10-15 Thread Beata Michalska
On Tue, 1 Oct 2019 at 14:04, Andrew Jones wrote: > > Add support for the query-cpu-model-expansion QMP command to Arm. We > do this selectively, only exposing CPU properties which represent > optional CPU features which the user may want to enable/disable. > Additionally we restrict the list of qu

Re: [PULL 0/1] qemu-openbios queue 20191012

2019-10-15 Thread Peter Maydell
On Sat, 12 Oct 2019 at 11:24, Mark Cave-Ayland wrote: > > The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2019-10-08 16:08:35 +0100) > > are available in the Git repository a

Re: [PATCH] tcg/arm: Expand epilogue inline

2019-10-15 Thread Philippe Mathieu-Daudé
Hi Richard, On 10/15/19 3:29 AM, Richard Henderson wrote: It is, after all, just two instructions. Profiling on a cortex-a15, using -d nochain to increase the number of exit_tb that are executed, shows a minor improvement of 0.5%. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.inc.

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Peter Maydell
On Tue, 15 Oct 2019 at 10:14, Daniel P. Berrangé wrote: > > On Tue, Oct 15, 2019 at 11:02:43AM +0200, Marc-André Lureau wrote: > > I suppose the same applies to dtc (1.4.2 required by qemu, but xenial > > has 1.4.0... so we have to wait until April 26, 2020? 18.04 LTS > > release date + 2y). > > P

Re: RFC: Why dont we move to newer capstone?

2019-10-15 Thread Daniel P . Berrangé
On Tue, Oct 15, 2019 at 10:57:44AM +0100, Peter Maydell wrote: > On Tue, 15 Oct 2019 at 10:14, Daniel P. Berrangé wrote: > > > > On Tue, Oct 15, 2019 at 11:02:43AM +0200, Marc-André Lureau wrote: > > > I suppose the same applies to dtc (1.4.2 required by qemu, but xenial > > > has 1.4.0... so we h

Re: [PATCH 2/2] apic: Use 32bit APIC ID for migration instance ID

2019-10-15 Thread Peter Xu
On Tue, Oct 15, 2019 at 10:22:18AM +0100, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > Migration is silently broken now with x2apic config like this: > > > > -smp 200,maxcpus=288,sockets=2,cores=72,threads=2 \ > > -device intel-iommu,intremap=on,eim=on > > >

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Peter Xu
On Tue, Oct 15, 2019 at 10:45:53AM +0200, Juan Quintela wrote: > Peter Xu wrote: > > It was "int" and used as 32bits fields (see save_section_header()). > > It's unsafe already because sizeof(int) could be 2 on i386, I think. > > So at least uint32_t would suite more. While it also uses "-1" as a

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Peter Xu
On Tue, Oct 15, 2019 at 10:34:57AM +0200, Juan Quintela wrote: > Peter Xu wrote: > > It was "int" and used as 32bits fields (see save_section_header()). > > It's unsafe already because sizeof(int) could be 2 on i386, > > i386 is 32bits, so int is 32bits O:-) Right it should be 16 bits systems.

[PATCH v2 06/20] nvme: add support for the abort command

2019-10-15 Thread Klaus Jensen
Required for compliance with NVMe revision 1.2.1. See NVM Express 1.2.1, Section 5.1 ("Abort command"). The Abort command is a best effort command; for now, the device always fails to abort the given command. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 16 1 file changed,

[PATCH v2 01/20] nvme: remove superfluous breaks

2019-10-15 Thread Klaus Jensen
These break statements was left over when commit 3036a626e9ef ("nvme: add Get/Set Feature Timestamp support") was merged. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 12d825425016..c06e3ca31905 1006

[PATCH v2 04/20] nvme: populate the mandatory subnqn and ver fields

2019-10-15 Thread Klaus Jensen
Required for compliance with NVMe revision 1.2.1 or later. See NVM Express 1.2.1, Section 5.11 ("Identify command"), Figure 90 and Section 7.9 ("NVMe Qualified Names"). This also bumps the supported version to 1.2.1. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 11 --- 1 file chang

[PATCH v2 05/20] nvme: allow completion queues in the cmb

2019-10-15 Thread Klaus Jensen
Allow completion queues in the controller memory buffer. This also inlines the nvme_addr_{read,write} functions and adds an nvme_addr_is_cmb helper. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 38 +- 1 file changed, 29 insertions(+), 9 deletions(-) dif

[PATCH v2 08/20] nvme: add support for the get log page command

2019-10-15 Thread Klaus Jensen
Add support for the Get Log Page command and basic implementations of the mandatory Error Information, SMART/Health Information and Firmware Slot Information log pages. In violation of the specification, the SMART/Health Information log page does not persist information over the lifetime of the co

[PATCH v2 03/20] nvme: add missing fields in the identify controller data structure

2019-10-15 Thread Klaus Jensen
Not used by the device model but added for completeness. See NVM Express 1.2.1, Section 5.11 ("Identify command"), Figure 90. Signed-off-by: Klaus Jensen --- include/block/nvme.h | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/include/block

[PATCH v2 00/20] nvme: support NVMe v1.3d, SGLs and multiple namespaces

2019-10-15 Thread Klaus Jensen
Hi, (Quick note to Fam): most of this series is irrelevant to you as the maintainer of the nvme block driver, but patch "nvme: add support for scatter gather lists" touches block/nvme.c due to changes in the shared NvmeCmd struct. Anyway, v2 comes with a good bunch of changes. Compared to v1[1],

[PATCH v2 07/20] nvme: refactor device realization

2019-10-15 Thread Klaus Jensen
This patch splits up nvme_realize into multiple individual functions, each initializing a different subset of the device. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 176 +++- hw/block/nvme.h | 22 ++ 2 files changed, 135 insertions(+), 63 d

[PATCH v2 09/20] nvme: add support for the asynchronous event request command

2019-10-15 Thread Klaus Jensen
Required for compliance with NVMe revision 1.2.1. See NVM Express 1.2.1, Section 5.2 ("Asynchronous Event Request command"). Mostly imported from Keith's qemu-nvme tree. Modified to not enqueue events if something of the same type is already queued (but not cleared by the host). Signed-off-by: Kl

[PATCH v2 02/20] nvme: move device parameters to separate struct

2019-10-15 Thread Klaus Jensen
Move device configuration parameters to separate struct to make it explicit what is configurable and what is set internally. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 44 ++-- hw/block/nvme.h | 16 +--- 2 files changed, 35 insertions(+)

[PATCH v2 19/20] nvme: make lba data size configurable

2019-10-15 Thread Klaus Jensen
Signed-off-by: Klaus Jensen --- hw/block/nvme-ns.c | 2 +- hw/block/nvme-ns.h | 4 +++- hw/block/nvme.c| 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/block/nvme-ns.c b/hw/block/nvme-ns.c index aa76bb63ef45..70ff622a5729 100644 --- a/hw/block/nvme-ns.c +++ b/hw/block/

[PATCH v2 10/20] nvme: add logging to error information log page

2019-10-15 Thread Klaus Jensen
This adds the nvme_set_error_page function which allows errors to be written to the error information log page. The functionality is largely unused in the device, but with this in place we can at least try to push new contributions to use it. NOTE: In violation of the specification the Error Count

[PATCH v2 12/20] nvme: bump supported specification version to 1.3

2019-10-15 Thread Klaus Jensen
Add the new Namespace Identification Descriptor List (CNS 03h) and track creation of queues to enable the controller to return Command Sequence Error if Set Features is called for Number of Queues after any queues have been created. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 82

[PATCH v2 17/20] nvme: bump controller pci device id

2019-10-15 Thread Klaus Jensen
Since commits 9d6459d21a6e ("nvme: fix write zeroes offset and count") and c7fe50bcf1f1 ("nvme: support multiple namespaces") the controller device no longer has the quirks that the Linux kernel think it has. As the quirks are applied based on pci vendor and device id, bump the device id to get ri

Re: [PATCH v3 07/10] migration: add new migration state wait-unplug

2019-10-15 Thread Dr. David Alan Gilbert
* Jens Freimann (jfreim...@redhat.com) wrote: > On Fri, Oct 11, 2019 at 06:11:33PM +0100, Dr. David Alan Gilbert wrote: > > * Jens Freimann (jfreim...@redhat.com) wrote: > > > This patch adds a new migration state called wait-unplug. It is entered > > > after the SETUP state and will transition in

[PATCH v2 18/20] nvme: remove redundant NvmeCmd pointer parameter

2019-10-15 Thread Klaus Jensen
The command struct is available in the NvmeRequest that we generally pass around anyway. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 219 +++- 1 file changed, 106 insertions(+), 113 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c ind

[PATCH v2 11/20] nvme: add missing mandatory features

2019-10-15 Thread Klaus Jensen
Add support for returning a resonable response to Get/Set Features of mandatory features. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 51 --- hw/block/trace-events | 2 ++ include/block/nvme.h | 3 ++- 3 files changed, 52 insertions(+), 4 de

[PATCH v2 14/20] nvme: allow multiple aios per command

2019-10-15 Thread Klaus Jensen
This refactors how the device issues asynchronous block backend requests. The NvmeRequest now holds a queue of NvmeAIOs that are associated with the command. This allows multiple aios to be issued for a command. Only when all requests have been completed will the device post a completion queue entr

[PATCH v2 20/20] nvme: handle dma errors

2019-10-15 Thread Klaus Jensen
Handling DMA errors gracefully is required for the device to pass the block/011 test ("disable PCI device while doing I/O") in the blktests suite. With this patch the device passes the test by retrying "critical" transfers (posting of completion entries and processing of submission queue entries).

[PATCH v2 13/20] nvme: refactor prp mapping

2019-10-15 Thread Klaus Jensen
Instead of handling both QSGs and IOVs in multiple places, simply use QSGs everywhere by assuming that the request does not involve the controller memory buffer (CMB). If the request is found to involve the CMB, convert the QSG to an IOV and issue the I/O. The QSG is converted to an IOV by the dma

[PATCH v2 15/20] nvme: add support for scatter gather lists

2019-10-15 Thread Klaus Jensen
For now, support the Data Block, Segment and Last Segment descriptor types. See NVM Express 1.3d, Section 4.4 ("Scatter Gather List (SGL)"). Signed-off-by: Klaus Jensen --- block/nvme.c | 18 +- hw/block/nvme.c | 380 -- hw/block/trace-eve

[PATCH v2 16/20] nvme: support multiple namespaces

2019-10-15 Thread Klaus Jensen
This adds support for multiple namespaces by introducing a new 'nvme-ns' device model. The nvme device creates a bus named from the device name ('id'). The nvme-ns devices then connect to this and registers themselves with the nvme device. This changes how an nvme device is created. Example with t

Re: [PATCH v5 1/9] target/arm/monitor: Introduce qmp_query_cpu_model_expansion

2019-10-15 Thread Andrew Jones
On Tue, Oct 15, 2019 at 10:59:16AM +0100, Beata Michalska wrote: > On Tue, 1 Oct 2019 at 14:04, Andrew Jones wrote: > > + > > +obj = object_new(object_class_get_name(oc)); > > + > > +if (qdict_in) { > > +Visitor *visitor; > > +Error *err = NULL; > > + > > +visitor =

Re: [PULL 0/1] Block patches

2019-10-15 Thread Peter Maydell
On Mon, 14 Oct 2019 at 09:52, Stefan Hajnoczi wrote: > > The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2019-10-08 16:08:35 +0100) > > are available in the Git repository at

Re: [PATCH 2/2] apic: Use 32bit APIC ID for migration instance ID

2019-10-15 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Tue, Oct 15, 2019 at 10:22:18AM +0100, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > Migration is silently broken now with x2apic config like this: > > > > > > -smp 200,maxcpus=288,sockets=2,cores=72,threads=2 \ > > >

Re: [PATCH v5 02/55] trace: add mmu_index to mem_info

2019-10-15 Thread Alex Bennée
Richard Henderson writes: > On 10/14/19 3:48 AM, Alex Bennée wrote: >> diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c >> index defc8d5929..1210d8f243 100644 >> --- a/accel/tcg/cputlb.c >> +++ b/accel/tcg/cputlb.c >> @@ -1811,6 +1811,7 @@ void helper_be_stq_mmu(CPUArchState *env, target_ul

[PATCH v9 01/15] hw/virtio: Factorize virtio-mmio headers

2019-10-15 Thread Sergio Lopez
Put QOM and main struct definition in a separate header file, so it can be accessed from other components. Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin --- include/hw/virtio/virtio-mmio.h | 73 +++

[PATCH v9 00/15] Introduce the microvm machine type

2019-10-15 Thread Sergio Lopez
Microvm is a machine type inspired by Firecracker and constructed after the its machine model. It's a minimalist machine type without PCI nor ACPI support, designed for short-lived guests. Microvm also establishes a baseline for benchmarking and optimizing both QEMU and guest operating systems, si

[PATCH v9 03/15] hw/i386/pc: fix code style issues on functions that will be moved out

2019-10-15 Thread Sergio Lopez
Fix code style issues detected by checkpatch.pl on functions that will be moved out to x86.c. Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé --- hw/i386/pc.c | 53 1 file changed, 29 insertions(+), 24 deletions(-) diff --git

[PATCH v9 06/15] hw/i386/pc: remove commented out code from x86_load_linux()

2019-10-15 Thread Sergio Lopez
Follow checkpatch.pl recommendation and remove commented out code from x86_load_linux(). Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé --- hw/i386/pc.c | 13 - 1 file changed, 13 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 90c2263a33..612bfe9c95 10

[PATCH v9 02/15] hw/i386/pc: rename functions shared with non-PC machines

2019-10-15 Thread Sergio Lopez
The following functions are named *pc* but are not PC-machine specific but generic to the X86 architecture, rename them: load_linux -> x86_load_linux pc_new_cpu -> x86_new_cpu pc_cpus_init -> x86_cpus_init pc_cpu_index_to_props -> x86_cpu_

[PATCH v9 04/15] hw/i386/pc: replace use of strtol with qemu_strtol in x86_load_linux()

2019-10-15 Thread Sergio Lopez
Follow checkpatch.pl recommendation and replace the use of strtol with qemu_strtol in x86_load_linux(). Signed-off-by: Sergio Lopez --- hw/i386/pc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 77e86bfc3d..c8608b8007 100644 --- a/h

[PATCH v9 15/15] MAINTAINERS: add microvm related files

2019-10-15 Thread Sergio Lopez
Add a new "Microvm" section under "X86 Machines" with the new files related to this machine type. Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fe4dc51b08..9744f07727 10

[PATCH v9 07/15] hw/i386/pc: move shared x86 functions to x86.c and export them

2019-10-15 Thread Sergio Lopez
Move x86 functions that will be shared between PC and non-PC machine types to x86.c, along with their helpers. Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Stefano Garzarella Reviewed-by: Michael S. Tsirkin --- include/hw/i386

[PATCH v9 11/15] hw/intc/apic: reject pic ints if isa_pic == NULL

2019-10-15 Thread Sergio Lopez
In apic_accept_pic_intr(), reject PIC interruptions if a i8259 PIC has not been instantiated (isa_pic == NULL). Suggested-by: Paolo Bonzini Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- hw/intc/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc

[PATCH v9 05/15] hw/i386/pc: avoid an assignment in if condition in x86_load_linux()

2019-10-15 Thread Sergio Lopez
Follow checkpatch.pl recommendation and avoid an assignment in if condition in x86_load_linux(). Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé --- hw/i386/pc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index c8608b8

[PATCH v9 08/15] hw/i386: split PCMachineState deriving X86MachineState from it

2019-10-15 Thread Sergio Lopez
Split up PCMachineState and PCMachineClass and derive X86MachineState and X86MachineClass from them. This allows sharing code with non-PC x86 machine types. Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin --- in

[PATCH v9 12/15] roms: add microvm-bios (qboot) as binary and git submodule

2019-10-15 Thread Sergio Lopez
qboot is a minimalist x86 firmware for booting Linux kernels. It does the mininum amount of work required for the task, and it's able to boot both PVH images and bzImages without relying on option roms. This characteristics make it an ideal companion for the microvm machine type. Signed-off-by: S

[PATCH v9 09/15] hw/i386: make x86.c independent from PCMachineState

2019-10-15 Thread Sergio Lopez
As a last step into splitting PCMachineState and deriving X86MachineState from it, make the functions previously extracted from pc.c to x86.c independent from PCMachineState, using X86MachineState instead. Signed-off-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathie

Re: [PATCH v9 04/15] hw/i386/pc: replace use of strtol with qemu_strtol in x86_load_linux()

2019-10-15 Thread Philippe Mathieu-Daudé
Hi Sergio, On 10/15/19 1:23 PM, Sergio Lopez wrote: Follow checkpatch.pl recommendation and replace the use of strtol with qemu_strtol in x86_load_linux(). "with qemu_strtoui" Signed-off-by: Sergio Lopez --- hw/i386/pc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) dif

[PATCH v9 10/15] fw_cfg: add "modify" functions for all types

2019-10-15 Thread Sergio Lopez
This allows to alter the contents of an already added item. Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- include/hw/nvram/fw_cfg.h | 42 +++ hw/nvram/fw_cfg.c | 29 +++ 2 files changed, 71 insertions(+) diff

[PATCH v9 14/15] hw/i386: Introduce the microvm machine type

2019-10-15 Thread Sergio Lopez
Microvm is a machine type inspired by Firecracker and constructed after the its machine model. It's a minimalist machine type without PCI nor ACPI support, designed for short-lived guests. Microvm also establishes a baseline for benchmarking and optimizing both QEMU and guest operating systems, si

[PATCH v9 13/15] docs/microvm.rst: document the new microvm machine type

2019-10-15 Thread Sergio Lopez
Document the new microvm machine type. Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- docs/microvm.rst | 98 1 file changed, 98 insertions(+) create mode 100644 docs/microvm.rst diff --git a/docs/microvm.rst b/docs/microvm.rst

Re: [PATCH v9 15/15] MAINTAINERS: add microvm related files

2019-10-15 Thread Philippe Mathieu-Daudé
On 10/15/19 1:23 PM, Sergio Lopez wrote: Add a new "Microvm" section under "X86 Machines" with the new files related to this machine type. Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS

Re: [PATCH v9 15/15] MAINTAINERS: add microvm related files

2019-10-15 Thread Philippe Mathieu-Daudé
On 10/15/19 1:23 PM, Sergio Lopez wrote: Add a new "Microvm" section under "X86 Machines" with the new files related to this machine type. Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS

Re: [PATCH 2/2] core: replace getpagesize() with qemu_real_host_page_size

2019-10-15 Thread Yuval Shaia
On Sun, Oct 13, 2019 at 10:11:45AM +0800, Wei Yang wrote: > There are three page size in qemu: > > real host page size > host page size > target page size > > All of them have dedicate variable to represent. For the last two, we > use the same form in the whole qemu project, while for the f

[Bug 1846451] Re: K800 keyboard no longer works when attached to a VM

2019-10-15 Thread Gerd Hoffmann
qemu: -device usb-host,...,guest-resets-all=true libvirt: ... assuming this is is the only pass-through device. If you pass through more devices you''l have hostdev0, hostdev1, ... and have to pick the correct one. (see also http://blog.vmsplice.net/2011/04/how-to-pass-qemu-command- li

Re: [PATCH v9 13/15] docs/microvm.rst: document the new microvm machine type

2019-10-15 Thread Greg Kurz
On Tue, 15 Oct 2019 13:23:44 +0200 Sergio Lopez wrote: > Document the new microvm machine type. > > Signed-off-by: Sergio Lopez > Reviewed-by: Michael S. Tsirkin > --- > docs/microvm.rst | 98 > 1 file changed, 98 insertions(+) > create mode 1

Re: [PATCH v5 1/9] target/arm/monitor: Introduce qmp_query_cpu_model_expansion

2019-10-15 Thread Beata Michalska
On Tue, 15 Oct 2019 at 11:56, Andrew Jones wrote: > > On Tue, Oct 15, 2019 at 10:59:16AM +0100, Beata Michalska wrote: > > On Tue, 1 Oct 2019 at 14:04, Andrew Jones wrote: > > > + > > > +obj = object_new(object_class_get_name(oc)); > > > + > > > +if (qdict_in) { > > > +Visitor *vi

Re: [PATCH v4 1/8] target/mips: Clean up helper.c

2019-10-15 Thread Aleksandar Markovic
> > > Markus wrote: > However, I find the common pattern applied here > > case 3: /* ERL */ > /* If EU is set, always unmapped */ > if (eu) { > return 0; > } > > more readable ... > > I am going to do it this way in v5. Thanks, Aleksandar > ... than

Re: [PATCH v26 00/21] Add RX archtecture support

2019-10-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191014115757.51866-1-ys...@users.sourceforge.jp/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v26 00/21] Add RX archtecture support Type: series Message-id: 20191014115757.51866-1-ys...

Re: [PULL 0/2] Tracing patches

2019-10-15 Thread Peter Maydell
On Mon, 14 Oct 2019 at 09:57, Stefan Hajnoczi wrote: > > The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2019-10-08 16:08:35 +0100) > > are available in the Git repository at

[PATCH v2] migration: Support QLIST migration

2019-10-15 Thread Eric Auger
Support QLIST migration using the same principle as QTAILQ: 94869d5c52 ("migration: migrate QTAILQ"). The VMSTATE_QLIST_V macro has the same proto as VMSTATE_QTAILQ_V. The change mainly resides in QLIST_RAW_INSERT_TAIL implementation. Tests also are provided. Signed-off-by: Eric Auger --- v1

[PATCH] doc: Describe missing generic -blockdev options

2019-10-15 Thread Kevin Wolf
We added more generic options after introducing -blockdev and forgot to update the documentation (man page and --help output) accordingly. Do that now. Signed-off-by: Kevin Wolf --- qemu-options.hx | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qemu-optio

[PATCH] blockdev: Use error_report() in hmp_commit()

2019-10-15 Thread Kevin Wolf
Instead of using monitor_printf() to report errors, hmp_commit() should use error_report() like other places do. Signed-off-by: Kevin Wolf --- blockdev.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/blockdev.c b/blockdev.c index f89e48fc79..e2358966c3 100644 --- a/b

[PATCH v3] migration: Support QLIST migration

2019-10-15 Thread Eric Auger
Support QLIST migration using the same principle as QTAILQ: 94869d5c52 ("migration: migrate QTAILQ"). The VMSTATE_QLIST_V macro has the same proto as VMSTATE_QTAILQ_V. The change mainly resides in QLIST_RAW_INSERT_TAIL implementation. Tests also are provided. Signed-off-by: Eric Auger --- v2

RE: [PATCH v4 2/2] i386: Add support to get/set/migrate Intel Processor Trace feature

2019-10-15 Thread Kang, Luwei
qemu> > diff --git a/target/i386/kvm.c b/target/i386/kvm.c index > > f9f4cd1..097c953 100644 > > --- a/target/i386/kvm.c > > +++ b/target/i386/kvm.c > > @@ -1811,6 +1811,25 @@ static int kvm_put_msrs(X86CPU *cpu, int level) > > kvm_msr_entry_add(cpu, MSR_MTRRphysMask(i), mask); > >

Re: [PULL 01/19] util/hbitmap: strict hbitmap_reset

2019-10-15 Thread John Snow
On 10/15/19 4:44 AM, Kevin Wolf wrote: > Am 14.10.2019 um 20:10 hat John Snow geschrieben: >> >> >> On 10/11/19 7:18 PM, John Snow wrote: >>> >>> >>> On 10/11/19 5:48 PM, Eric Blake wrote: On 10/11/19 4:25 PM, John Snow wrote: > From: Vladimir Sementsov-Ogievskiy > > hbitmap_re

Re: [PATCH 1/2] migration: Boost SaveStateEntry.instance_id to 64 bits

2019-10-15 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> Peter Xu wrote: >> > It was "int" and used as 32bits fields (see save_section_header()). >> > It's unsafe already because sizeof(int) could be 2 on i386, I think. >> > So at least uint32_t would suite more. While i

Re: [PATCH v4 2/2] i386: Add support to get/set/migrate Intel Processor Trace feature

2019-10-15 Thread Eduardo Habkost
On Tue, Oct 15, 2019 at 12:51:48PM +, Kang, Luwei wrote: > qemu> > diff --git a/target/i386/kvm.c b/target/i386/kvm.c index > > > f9f4cd1..097c953 100644 > > > --- a/target/i386/kvm.c > > > +++ b/target/i386/kvm.c > > > @@ -1811,6 +1811,25 @@ static int kvm_put_msrs(X86CPU *cpu, int level) > >

Re: [PATCH] doc: Describe missing generic -blockdev options

2019-10-15 Thread Peter Maydell
On Tue, 15 Oct 2019 at 13:40, Kevin Wolf wrote: > > We added more generic options after introducing -blockdev and forgot to > update the documentation (man page and --help output) accordingly. Do > that now. > > Signed-off-by: Kevin Wolf > --- > qemu-options.hx | 19 ++- > 1 file

Re: [PATCH] doc: Describe missing generic -blockdev options

2019-10-15 Thread Eric Blake
On 10/15/19 7:38 AM, Kevin Wolf wrote: We added more generic options after introducing -blockdev and forgot to update the documentation (man page and --help output) accordingly. Do that now. Signed-off-by: Kevin Wolf --- qemu-options.hx | 19 ++- 1 file changed, 18 insertions

Re: [PATCH] blockdev: Use error_report() in hmp_commit()

2019-10-15 Thread Eric Blake
On 10/15/19 7:39 AM, Kevin Wolf wrote: Instead of using monitor_printf() to report errors, hmp_commit() should use error_report() like other places do. Signed-off-by: Kevin Wolf --- blockdev.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) Reviewed-by: Eric Blake -- Eric B

  1   2   3   >