[virtio-dev] [PATCH v5 01/10] vhost-user: add vhost-user device type

2020-05-18 Thread Nikos Dragazis
From: Stefan Hajnoczi The vhost-user device backend facilitates vhost-user device emulation through vhost-user protocol exchanges and access to shared memory. Software-defined networking, storage, and other I/O appliances can provide services through this device. This device is based on Wei

[virtio-dev] [PATCH v5 08/10] vhost-user: remove the extra PCI capabilities

2020-05-18 Thread Nikos Dragazis
Remove the extra PCI capabilities and use the existing virtio registers instead. This way we obtain portability across transports. Add a reference to the "Shared Memory Regions" section. Add some more minor changes (add missing commas, rename sections, enhance "Device Initialization" section,

[virtio-dev] [PATCH v5 10/10] vhost-user: clarify that we are talking about slave-initiated messages

2020-05-18 Thread Nikos Dragazis
Signed-off-by: Nikos Dragazis --- virtio-vhost-user.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio-vhost-user.tex b/virtio-vhost-user.tex index 328baec..6bcc6af 100644 --- a/virtio-vhost-user.tex +++ b/virtio-vhost-user.tex @@ -220,7 +220,7 @@

[virtio-dev] [PATCH v5 06/10] vhost-user: change the device id

2020-05-18 Thread Nikos Dragazis
Change the device id from 28 to 32. Signed-off-by: Nikos Dragazis --- content.tex | 2 +- virtio-vhost-user.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content.tex b/content.tex index 9f3e86d..8b4aa88 100644 --- a/content.tex +++ b/content.tex @@ -2801,7

[virtio-dev] [PATCH v5 03/10] vhost-user: add requirements for the notification capability

2020-05-18 Thread Nikos Dragazis
The configuration structure for the notification capability has certain device/driver requirements, similar to those of the MSI-X vector configuration. Add these requirements to the device spec. Signed-off-by: Nikos Dragazis --- virtio-vhost-user.tex | 42

[virtio-dev] [PATCH v5 09/10] vhost-user: intercept slave's reply to VHOST_USER_GET_PROTOCOL_FEATURES

2020-05-18 Thread Nikos Dragazis
Signed-off-by: Nikos Dragazis --- virtio-vhost-user.tex | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/virtio-vhost-user.tex b/virtio-vhost-user.tex index a673526..328baec 100644 --- a/virtio-vhost-user.tex +++ b/virtio-vhost-user.tex @@ -142,10 +142,15 @@

[virtio-dev] [PATCH v5 02/10] vhost-user: minor fixes

2020-05-18 Thread Nikos Dragazis
Signed-off-by: Nikos Dragazis Reviewed-by: Stefan Hajnoczi --- virtio-vhost-user.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtio-vhost-user.tex b/virtio-vhost-user.tex index ac96dc2..13ecd41 100644 --- a/virtio-vhost-user.tex +++ b/virtio-vhost-user.tex @@

[virtio-dev] [PATCH v5 07/10] vhost-user: minor fix on status register

2020-05-18 Thread Nikos Dragazis
Change the definitions of VIRTIO_VHOST_USER_STATUS_MASTER_UP and VIRTIO_VHOST_USER_STATUS_SLAVE_UP so that they refer to different bits. This is necessary because these two flags are orthogonal, i.e., they are unrelated and so they must be set/cleared individually. Mention explicitly who sets the

[virtio-dev] [PATCH v5 05/10] vhost-user: add conformance targets and clauses

2020-05-18 Thread Nikos Dragazis
Signed-off-by: Nikos Dragazis --- conformance.tex | 25 ++--- virtio-vhost-user.tex | 4 ++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/conformance.tex b/conformance.tex index b6fdec0..dcd2199 100644 --- a/conformance.tex +++ b/conformance.tex @@

[virtio-dev] [PATCH v5 04/10] vhost-user: update shared memory capability

2020-05-18 Thread Nikos Dragazis
The virtio vhost-user device has shared memory resources. Therefore, it uses the VIRTIO_PCI_CAP_SHARED_MEMORY_CFG capability to standardize those resources through the PCI Configuration Space. This patch synchronizes the virtio vhost-user device spec with the following shared memory resources

[virtio-dev] [PATCH v5 00/10] introduce virtio vhost-user backend device type

2020-05-18 Thread Nikos Dragazis
Hi everyone, this patch presents an updated version of the virtio device spec for the virtio-vhost-user device. The initial RFC implementation can be found here: [1]. It’s been a long time since the last revision. I’m sending this patch to kick off the discussion again. I'm Cc-ing Stefan and

[virtio-dev] Re: [virtio-comment] [PATCH v2 1/3] content: Document balloon feature free page hints

2020-05-18 Thread Alexander Duyck
On Mon, May 18, 2020 at 6:18 AM David Hildenbrand wrote: > > On 15.05.20 19:33, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Free page hints allow the balloon driver to provide information on what > > pages are not currently in use so that we can avoid the cost of copying > > them in

[virtio-dev] Re: [PATCH v24 QEMU 3/3] virtio-balloon: Provide an interface for free page reporting

2020-05-18 Thread Alexander Duyck
On Fri, May 8, 2020 at 2:30 PM Alexander Duyck wrote: > > From: Alexander Duyck > > Add support for free page reporting. The idea is to function very similar > to how the balloon works in that we basically end up madvising the page as > not being used. However we don't really need to bother with

[virtio-dev] Re: [virtio-comment] [PATCH v2 1/3] content: Document balloon feature free page hints

2020-05-18 Thread David Hildenbrand
>> + >> +\devicenormative{\paragraph}{Free Page Hinting}{Device Types / Memory >> Balloon Device / Device Operation / Free Page Hinting} >> + >> +Normative statements in this section apply if the >> +VIRTIO_BALLOON_F_FREE_PAGE_HINT feature has been negotiated. >> + >> +The device MUST set

[virtio-dev] Re: [virtio-comment] [PATCH v2 1/3] content: Document balloon feature free page hints

2020-05-18 Thread David Hildenbrand
On 15.05.20 19:33, Alexander Duyck wrote: > From: Alexander Duyck > > Free page hints allow the balloon driver to provide information on what > pages are not currently in use so that we can avoid the cost of copying > them in migration scenarios. Add a feature description for free page hints >