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-
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
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
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
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..
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
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
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
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
> -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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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/
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
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.
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
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
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
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
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
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
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
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
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
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,
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
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 ++
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
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 +++
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
在 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
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
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
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
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
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
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
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
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
51 matches
Mail list logo