Re: [Qemu-devel] [Qemu-arm] [PATCH 2/2] block: m25p80: Introduce Die Erase command

2016-12-18 Thread Edgar E. Iglesias
On Mon, Dec 19, 2016 at 06:21:13AM +, Krzeminski, Marcin (Nokia - PL/Wroclaw) wrote: > > > > -Original Message- > > From: Edgar E. Iglesias [mailto:edgar.igles...@gmail.com] > > Sent: Friday, December 16, 2016 5:36 PM > > To: Krzeminski, Marcin (Nokia - PL/Wroclaw) > > > > Cc: qemu-

Re: [Qemu-devel] [RESEND Patch v1 00/37] Implementation of vhost-pci for inter-vm commucation

2016-12-18 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Subject: [Qemu-devel] [RESEND Patch v1 00/37] Implementation of vhost-pci for inter-vm commucation Message-id: 1

[Qemu-devel] [RESEND Patch v1 37/37] vl: enable vhost-pci-slave

2016-12-18 Thread Wei Wang
Enable vhost-pci-slave in vl.c Signed-off-by: Wei Wang --- vl.c | 21 + 1 file changed, 21 insertions(+) diff --git a/vl.c b/vl.c index deb116e..b8649be 100644 --- a/vl.c +++ b/vl.c @@ -123,6 +123,7 @@ int main(int argc, char **argv) #include "sysemu/replay.h" #include "qa

[Qemu-devel] [RESEND Patch v1 33/37] vhost-pci-net: send the negotiated feature bits to the master

2016-12-18 Thread Wei Wang
The slave actively sends the negotiated feature bits to the master. "need_send" is used to detect if the 64-bit feature bits are ready to be sent. Signed-off-by: Wei Wang --- hw/net/vhost-pci-net.c | 13 + hw/virtio/vhost-pci-slave.c | 21 + i

[Qemu-devel] [RESEND Patch v1 35/37] vhost-pci-net: start the vhost-pci-net device

2016-12-18 Thread Wei Wang
If the peer device on the other side doesn't need to be reset, then start the device when DRIVER_OK is received. Signed-off-by: Wei Wang --- hw/net/vhost-pci-net.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/net/vhost-pci-net.c b/hw/net/vhost-pci-net.c index 3289f4d..

[Qemu-devel] [RESEND Patch v1 32/37] vhost-user: add asynchronous read for the vhost-user master

2016-12-18 Thread Wei Wang
Enable the vhost-user master to asynchronously receive messages from the slave. Signed-off-by: Wei Wang --- hw/virtio/vhost-user.c | 43 +- include/hw/virtio/vhost-user.h | 4 include/net/vhost-user.h | 4 net/vhost-user.c

[Qemu-devel] [RESEND Patch v1 34/37] vhost-pci-slave: add "peer_reset"

2016-12-18 Thread Wei Wang
Setting "peer_reset" flags that the peer device is about to be reset. This happens when the slave side device driver only accepts a subset of the feature bits offered by the peer device. The peer device is expected to have a second run of the vhost-user protocol for the re-setup. Signed-off-by: W

[Qemu-devel] [PATCH v4] bugfix: vm halt when in reset looping

2016-12-18 Thread hangaohuai
reset mc146818rtc device when RESET event happens. Fix the problem: 1. Guest boot the second cpu, set CMOS_RESET_CODE 0x0a to protect selfboot; 2. VM being reset by others, hmp_system_reset; 3. seabios resume check the CMOS_RESET_CODE, if 0x0a, jump to the BDA resume execution by jump v

[Qemu-devel] [RESEND Patch v1 31/37] vhost-user/msg: send VHOST_USER_SET_VHOST_PCI (start/stop)

2016-12-18 Thread Wei Wang
The master requests the slave to create or destroy a vhost-pci device. Signed-off-by: Wei Wang --- hw/net/vhost_net.c| 36 hw/virtio/vhost-user.c| 17 + include/hw/virtio/vhost-backend.h | 2 ++ include/net/vhost_n

Re: [Qemu-devel] [Qemu-arm] [PATCH 2/2] block: m25p80: Introduce Die Erase command

2016-12-18 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
> -Original Message- > From: Edgar E. Iglesias [mailto:edgar.igles...@gmail.com] > Sent: Friday, December 16, 2016 5:36 PM > To: Krzeminski, Marcin (Nokia - PL/Wroclaw) > > Cc: qemu-devel@nongnu.org; peter.mayd...@linaro.org; rfsw- > patc...@mlist.nokia.com; qemu-...@nongnu.org; c...@kao

[Qemu-devel] [RESEND Patch v1 36/37] vhost-user/msg: handling VHOST_USER_SET_FEATURES

2016-12-18 Thread Wei Wang
If the featuer bits sent by the slave are not equal to the ones that were sent by the master, perform a reset of the master device. Signed-off-by: Wei Wang --- hw/net/vhost_net.c | 2 ++ hw/virtio/vhost-user.c | 20 hw/virtio/virtio-pci.c | 20

[Qemu-devel] [RESEND Patch v1 30/37] vhost-pci-slave/msg: VHOST_USER_SET_VHOST_PCI (stop)

2016-12-18 Thread Wei Wang
The slave removes the slave device when receiving the request with the stop command. In the case that the master side guest crashes, the crashed guest, typically, will be killed by the admin. This event will be captured via the close of the socket connection, so we can remove the vhost-pci device

[Qemu-devel] [RESEND Patch v1 26/37] vhost-pci-slave/msg: VHOST_USER_GET_VRING_BASE

2016-12-18 Thread Wei Wang
Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 16 1 file changed, 16 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 2cb84ed..ff9a251 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhost-pci-slave.c @@ -224,6 +224,

[Qemu-devel] [RESEND Patch v1 27/37] vhost-pci-net: pass the info collected by vp_slave to the device

2016-12-18 Thread Wei Wang
When the device is realized, pass the vring info to the device from the slave maintained list. The device uses bar2 to hold the peer VM memory. Signed-off-by: Wei Wang --- hw/net/vhost-pci-net.c | 29 ++ hw/virtio/virtio-pci.c

[Qemu-devel] [RESEND Patch v1 29/37] vhost-pci-slave/msg: VHOST_USER_SET_VHOST_PCI (start)

2016-12-18 Thread Wei Wang
The VHOST_USER_SET_VHOST_PCI msg is used to request the start or stop of the vhost-pci device. This patch handles the start commandin the slave. When receiving the SET_VHOST_PCI request with the start command, the slave creates a vhost-pci device based on the previously received virtio_id. Signed

[Qemu-devel] [RESEND Patch v1 17/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_BASE

2016-12-18 Thread Wei Wang
Update last_avail_idx to the head node in the list. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 10 ++ include/hw/virtio/vhost-pci-slave.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 77a2f68

[Qemu-devel] [RESEND Patch v1 23/37] vhost-pci-slave/msg: VHOST_USER_SET_LOG_BASE

2016-12-18 Thread Wei Wang
Live migration is not supported in this version, so do nothing here. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 4b4d3c8..799eb1e 100644 --- a/hw/virtio/vhost-pci-sla

[Qemu-devel] [RESEND Patch v1 28/37] vhost-pci-net: pass the mem and vring info to the driver

2016-12-18 Thread Wei Wang
When DRIVER_OK, the device sends the mem and vring info to the driver via the controlq. Signed-off-by: Wei Wang --- hw/net/vhost-pci-net.c | 68 ++ include/standard-headers/linux/vhost_pci_net.h | 17 +++ 2 files changed, 85 insertions(+) diff

[Qemu-devel] [RESEND Patch v1 15/37] vhost-pci-slave/msg: VHOST_USER_SET_MEM_TABLE

2016-12-18 Thread Wei Wang
Map the peer memory in QEMU, and prepare the memory for the guest using MemoryRegion. The controlq message of the memory info is constructed here, and it will be sent to the guest when the guest controlq is ready. With the the peer memory info reveived in the message, the guest will be able to tra

[Qemu-devel] [RESEND Patch v1 19/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_ADDR

2016-12-18 Thread Wei Wang
Update the virtqueue addresses to the head node of the list. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 10 ++ include/hw/virtio/vhost-pci-slave.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c in

[Qemu-devel] [RESEND Patch v1 25/37] vhost-pci-slave/msg: VHOST_USER_SEND_RARP

2016-12-18 Thread Wei Wang
Not implemented in this version. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 7d451b4..2cb84ed 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhost-pci-slave

[Qemu-devel] [RESEND Patch v1 10/37] vhost-pci-slave/msg: VHOST_USER_SET_PROTOCOL_FEATURES

2016-12-18 Thread Wei Wang
Not used currently. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 05255d1..020e279 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhost-pci-slave.c @@ -121,6

[Qemu-devel] [RESEND Patch v1 21/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_CALL

2016-12-18 Thread Wei Wang
Update the callfd to the head node in the list. This version of vhost-pci expects the master device to use polling to receive packets, so callfd is recorded here for tomorrow's implementation. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 18 ++ include/hw/vi

[Qemu-devel] [RESEND Patch v1 24/37] vhost-pci-slave/msg: VHOST_USER_SET_LOG_FD

2016-12-18 Thread Wei Wang
Not implemented in this version. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 799eb1e..7d451b4 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhost-pci-sla

[Qemu-devel] [RESEND Patch v1 08/37] vhost-pci-slave/msg: VHOST_USER_SET_FEATURES

2016-12-18 Thread Wei Wang
Store the feature bits that have been negotiated between the master device and driver. The feature bits will be negotiated with the slave driver. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/

[Qemu-devel] [RESEND Patch v1 16/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_NUM

2016-12-18 Thread Wei Wang
The protocol doesn't have a message to tell the slave how many virtqueues that the master device has. So, the slave side implementation uses a list to manage the virtqueue info sent from the master. SET_VRING_NUM is the first virtqueue info passed from the master, so the slave allocates a node when

[Qemu-devel] [RESEND Patch v1 22/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_ENABLE

2016-12-18 Thread Wei Wang
Enable/Disable the corresponding virtqueue pairs in the list. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 15 +++ include/hw/virtio/vhost-pci-slave.h | 1 + 2 files changed, 16 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.

[Qemu-devel] [RESEND Patch v1 09/37] vhost-pci-slave/msg: VHOST_USER_GET_PROTOCOL_FEATURES

2016-12-18 Thread Wei Wang
Add a new protocol feature, VHOST_USER_PROTOCOL_F_VHOST_PCI. This feature indicates the support of the vhost-pci extension for inter-vm communiaction. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c| 16 include/hw/virtio/vhost-user.h | 6 ++ 2 files changed, 22

[Qemu-devel] [RESEND Patch v1 18/37] vhost-user: send guest physical address of virtqueues to the slave

2016-12-18 Thread Wei Wang
In the vhost-pci case, the slave needs the master side guest physical address, rather than the qemu virtual address. Signed-off-by: Wei Wang --- hw/virtio/vhost.c | 64 +-- include/hw/virtio/vhost.h | 2 ++ 2 files changed, 47 insertions(+), 1

[Qemu-devel] [RESEND Patch v1 13/37] vhost-pci-slave/msg: VHOST_USER_GET_QUEUE_NUM

2016-12-18 Thread Wei Wang
Send the max supported queue num according to the device type back to the master. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 3f35649..7f237bd

[Qemu-devel] [RESEND Patch v1 07/37] vhost-pci-slave/msg: VHOST_USER_GET_FEATURES

2016-12-18 Thread Wei Wang
Offer the initial feature bits, which haven't been negotiated with the slave driver, to the master. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 38 + include/hw/virtio/vhost-pci-slave.h | 1 + 2 files changed, 39 insertions(+) diff --gi

[Qemu-devel] [RESEND Patch v1 11/37] vhost-user/msg: VHOST_USER_PROTOCOL_F_SET_DEVICE_ID

2016-12-18 Thread Wei Wang
The feature, VHOST_USER_PROTOCOL_F_SET_DEVICE_ID, indicates that the slave side implementation supports different types of devices. The master tells the slave what type of device to create by sending the VHOST_USER_SET_DEVICE_ID message. Currently, only the net type is supported. Signed-off-by: We

[Qemu-devel] [RESEND Patch v1 12/37] vhost-pci-slave/msg: VHOST_USER_SET_DEVICE_ID

2016-12-18 Thread Wei Wang
Initialize the feature bits according to the device type. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 23 +++ include/hw/virtio/vhost-pci-slave.h | 1 + 2 files changed, 24 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-sl

[Qemu-devel] [RESEND Patch v1 20/37] vhost-pci-slave/msg: VHOST_USER_SET_VRING_KICK

2016-12-18 Thread Wei Wang
Update the kickfd to the head node in the list. This version of vhost-pci expects the driver to use polling to receive packets. So, other than storing the kickfd, we don't do anything more. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 19 +++ include/hw/virt

[Qemu-devel] [RESEND Patch v1 05/37] vhost-pci-slave: start the implementation of vhost-pci-slave

2016-12-18 Thread Wei Wang
Vhost-pci-slave uses a QEMU socket to talk to the master. This patch associates the slave with the qemu sever socket. Signed-off-by: Wei Wang --- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-pci-slave.c | 53 + include/hw/virtio/vhost-pc

[Qemu-devel] [RESEND Patch v1 04/37] vl: add the vhost-pci-slave command line option

2016-12-18 Thread Wei Wang
An example of the command line option to create a vhost-pci-slave is: -chardev socket,id=slave1,server,wait=off,path=/opt/vhost-pci-slave -vhost-pci-slave socket,chardev=slave1 Signed-off-by: Wei Wang --- qemu-options.hx | 4 vl.c| 22 ++ 2 files changed, 2

[Qemu-devel] [RESEND Patch v1 14/37] vhost-pci-slave/msg: VHOST_USER_SET_OWNER

2016-12-18 Thread Wei Wang
Do nothing currently. Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 7f237bd..6f6c07f 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhost-pci-slave.c @@ -169,

[Qemu-devel] [RESEND Patch v1 06/37] vhost-pci-slave: set up the fundamental handlers for the server socket

2016-12-18 Thread Wei Wang
Signed-off-by: Wei Wang --- hw/virtio/vhost-pci-slave.c | 54 + 1 file changed, 54 insertions(+) diff --git a/hw/virtio/vhost-pci-slave.c b/hw/virtio/vhost-pci-slave.c index 6b6deb2..cb3abae 100644 --- a/hw/virtio/vhost-pci-slave.c +++ b/hw/virtio/vhos

[Qemu-devel] [RESEND Patch v1 03/37] vhost-user: share the vhost-user protocol related structures

2016-12-18 Thread Wei Wang
Put the vhost-user protocol related data structures into vhost-user.h, so that they can be used in other implementations (e.g. a slave implementation). Signed-off-by: Wei Wang --- hw/virtio/vhost-user.c | 87 +--- include/hw/virtio/vhost-user.h | 91 ++

[Qemu-devel] [RESEND Patch v1 00/37] Implementation of vhost-pci for inter-vm commucation

2016-12-18 Thread Wei Wang
This patch series implements vhost-pci, which is a point-to-point based inter-vm communication solution. The QEMU side implementation includes the vhost-user extension, vhost-pci device emulation and management. The current device part implementation is based on virtio 1.0, but it can be easily upg

[Qemu-devel] [RESEND Patch v1 01/37] vhost-pci-net: the fundamental vhost-pci-net device emulation

2016-12-18 Thread Wei Wang
This patch introduces the fundamental parts of the device emulation. Signed-off-by: Wei Wang --- hw/net/Makefile.objs | 2 +- hw/net/vhost-pci-net.c | 138 + include/hw/virtio/vhost-pci-net.h | 36 +++

[Qemu-devel] [RESEND Patch v1 02/37] vhost-pci-net: the fundamental implementation of vhost-pci-net-pci

2016-12-18 Thread Wei Wang
Signed-off-by: Wei Wang --- hw/virtio/virtio-pci.c | 46 ++ hw/virtio/virtio-pci.h | 14 ++ include/hw/pci/pci.h | 1 + 3 files changed, 61 insertions(+) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 21c2b9d..baf70b4

Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] iotests: Fix a problem in common.filter

2016-12-18 Thread Hao QingFeng
在 2016-12-16 22:34, Eric Blake 写道: [adding qemu-devel, ALL patches should include the main list] On 12/15/2016 11:47 PM, QingFeng Hao wrote: If TEST_DIR is set to /tmp, test case 144 will fail. The reason is that TEST_DIR duplicates with 144's test image name tmp.qcow2. s/duplicates with/res

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 5/6] target-ppc: implement xxextractuw instruction

2016-12-18 Thread Nikunj A Dadhania
David Gibson writes: > [ Unknown signature status ] > On Wed, Dec 14, 2016 at 02:14:26PM +0530, Nikunj A Dadhania wrote: >> David Gibson writes: >> >> > [ Unknown signature status ] >> > On Mon, Dec 12, 2016 at 09:31:11AM +0530, Nikunj Dadhania wrote: >> >> On 12 December 2016 at 06:00, David G

Re: [Qemu-devel] [PATCH v1 0/2] Add Atmel I2C TPM AT97SC3204T emulated device

2016-12-18 Thread Alastair D'Silva
On Fri, 2016-12-16 at 17:35 +, Peter Maydell wrote: > (added a couple of people to cc who might have an opinion on the i2c > protocol questions below) I'm certainly no expert, but I'll try :) > On 29 November 2016 at 19:30, Fabio Urquiza > wrote: > > > > One of the problems we had to addr

Re: [Qemu-devel] Can qemu reopen image files?

2016-12-18 Thread Fam Zheng
On Sun, 12/18 20:52, Christopher Pereira wrote: > Hi, > > We are doing a "qemu-img convert" operation (qcow2, with compression) to > shorten the backing-chain (in the middle of the backing-chain). > In order to force qemu to reopen files, we do a save and restore operation. > Is there a faster way

[Qemu-devel] Can qemu reopen image files?

2016-12-18 Thread Christopher Pereira
Hi, We are doing a "qemu-img convert" operation (qcow2, with compression) to shorten the backing-chain (in the middle of the backing-chain). In order to force qemu to reopen files, we do a save and restore operation. Is there a faster way to reopen image files using virsh or qemu? Best regards

Re: [Qemu-devel] [PATCH] x86: implement la57 paging mode

2016-12-18 Thread Eduardo Habkost
On Thu, Dec 15, 2016 at 03:13:05AM +0300, Kirill A. Shutemov wrote: > The new paging more is extension of IA32e mode with more additional page > table level. > > It brings support of 57-bit vitrual address space (128PB) and 52-bit > physical address space (4PB). > > The structure of new page tabl

Re: [Qemu-devel] [PATCH v2 1/2] qom/cpu: move tlb_flush to cpu_common_reset

2016-12-18 Thread Eduardo Habkost
On Thu, Dec 15, 2016 at 12:36:55PM +, Alex Bennée wrote: > It is a common thing amongst the various cpu reset functions want to > flush the SoftMMU's TLB entries. This is done either by calling > tlb_flush directly or by way of a general memset of the CPU > structure (sometimes both). > > This

Re: [Qemu-devel] [PATCHv3] multiboot: copy the cmdline verbatim, unescape module strings

2016-12-18 Thread Eduardo Habkost
On Thu, Dec 15, 2016 at 02:32:04PM +0200, Vlad Lungu wrote: > get_opt_value() truncates the value at the first comma > Use memcpy() instead > Unescape the module filename and parameters with get_opt_value() > before calling mb_add_cmdline() > > Signed-off-by: Vlad Lungu > --- > hw/i386/multiboot

Re: [Qemu-devel] [PATCH v3] qom: Make all interface types abstract

2016-12-18 Thread Eduardo Habkost
On Thu, Dec 15, 2016 at 10:17:27AM +0100, Markus Armbruster wrote: > Eduardo Habkost writes: > > > "qom-list-types abstract=false" currently returns all interface > > types, as if they were not abstract. Fix this by making sure all > > interface types are abstract. > > > > All interface types hav