busy polling support for vhost-kernel
cover busy polling support for vhost-kernel
Hi:
This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - 'vhost_poll_us' which is the maximum number of us could be spent for busy polling.
Please reivew.
Thanks
Jason Wang (2):
update linux headers to 4.5.0-rc5+
tap: vhost busy polling support
hw/net/vhost_net.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/virtio/vhost-backend.c | 8 +++ hw/virtio/vhost.c | 40 ++++++++++- include/hw/virtio/vhost-backend.h | 3 + include/hw/virtio/vhost.h | 3 +- include/net/vhost_net.h | 1 + include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +- include/standard-headers/linux/virtio_blk.h | 6 +- linux-headers/asm-arm64/kvm.h | 6 ++ linux-headers/asm-powerpc/epapr_hcalls.h | 4 +- linux-headers/asm-powerpc/kvm.h | 9 +++ linux-headers/asm-x86/unistd_32.h | 2 + linux-headers/asm-x86/unistd_64.h | 2 + linux-headers/linux/kvm.h | 11 +++ linux-headers/linux/userfaultfd.h | 2 +- linux-headers/linux/vfio.h | 92 ++++++++++++++++++++++++- linux-headers/linux/vhost.h | 6 ++ net/tap.c | 10 ++- net/vhost-user.c | 1 + qapi-schema.json | 3 +- 24 files changed, 206 insertions(+), 19 deletions(-)
Signature · 1 line
2.5.0
PATCH 1/2 update linux headers to 4.5.0-rc5+
--- include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +- include/standard-headers/linux/virtio_blk.h | 6 +- linux-headers/asm-arm64/kvm.h | 6 ++ linux-headers/asm-powerpc/epapr_hcalls.h | 4 +- linux-headers/asm-powerpc/kvm.h | 9 +++ linux-headers/asm-x86/unistd_32.h | 2 + linux-headers/asm-x86/unistd_64.h | 2 + linux-headers/linux/kvm.h | 11 +++ linux-headers/linux/userfaultfd.h | 2 +- linux-headers/linux/vfio.h | 92 ++++++++++++++++++++++++- linux-headers/linux/vhost.h | 6 ++ 14 files changed, 140 insertions(+), 12 deletions(-)
include/standard-headers/asm-x86/hyperv.h +3 -1
@@ -226,7 +226,9 @@ (~((1ull <<HV_X64_MSR_HYPERCALL_PAGE_ADDRESS_SHIFT ) -1 )) /* Declare the various hypercall operations. */ -#define HV_X64_HV_NOTIFY_LONG_SPIN_WAIT 0x0008 +#define HVCALL_NOTIFY_LONG_SPIN_WAIT 0x0008 +#define HVCALL_POST_MESSAGE 0x005c +#define HVCALL_SIGNAL_EVENT 0x005d#define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE 0x00000001#define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT 12
include/standard-headers/linux/input.h +1 -0
@@ -243,6 +243,7 @@ struct input_mask {#define BUS_GSC 0x1A#define BUS_ATARI 0x1B#define BUS_SPI 0x1C +#define BUS_RMI 0x1D/* * MT_TOOL types
include/standard-headers/linux/types.h +3 -2
@@ -1,2 +1,3 @@ -#include <stdint.h> -#include "qemu/compiler.h" +/* For QEMU all types are already defined via osdep.h, so this +* header does not need to do anything. +*/
include/standard-headers/linux/virtio_balloon.h +1 -1
@@ -51,7 +51,7 @@ struct virtio_balloon_config {#define VIRTIO_BALLOON_S_MINFLT 3/* Number of minor faults */ #define VIRTIO_BALLOON_S_MEMFREE 4/* Total amount of free memory */ #define VIRTIO_BALLOON_S_MEMTOT 5/* Total amount of memory */ -#define VIRTIO_BALLOON_S_AVAIL 6/* Amount of available memory in guest */ +#define VIRTIO_BALLOON_S_AVAIL 6/* Available memory as in /proc */ #define VIRTIO_BALLOON_S_NR 7/*
include/standard-headers/linux/virtio_blk.h +3 -3
@@ -43,10 +43,10 @@#ifndef VIRTIO_BLK_NO_LEGACY #define VIRTIO_BLK_F_BARRIER 0/* Does host support barriers? */ #define VIRTIO_BLK_F_SCSI 7/* Supports scsi command passthru */ -#define VIRTIO_BLK_F_WCE 9/* Writeback mode enabled after reset */ +#define VIRTIO_BLK_F_FLUSH 9/* Flush command supported */ #define VIRTIO_BLK_F_CONFIG_WCE 11/* Writeback mode available in config */ -/* Old (deprecated) name for VIRTIO_BLK_F_WCE. */ -#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE +/* Old (deprecated) name for VIRTIO_BLK_F_FLUSH. */ +#define VIRTIO_BLK_F_WCE VIRTIO_BLK_F_FLUSH#endif /* !VIRTIO_BLK_NO_LEGACY */ #define VIRTIO_BLK_ID_BYTES 20/* ID string length */
linux-headers/asm-arm64/kvm.h +6 -0
@@ -94,6 +94,7 @@ struct kvm_regs {#define KVM_ARM_VCPU_POWER_OFF 0/* CPU is started in OFF state */ #define KVM_ARM_VCPU_EL1_32BIT 1/* CPU running a 32bit VM */ #define KVM_ARM_VCPU_PSCI_0_2 2/* CPU uses PSCI v0.2 */ +#define KVM_ARM_VCPU_PMU_V3 3/* Support guest PMUv3 */ struct kvm_vcpu_init {__u32 target;
@@ -204,6 +205,11 @@ struct kvm_arch_memory_slot {#define KVM_DEV_ARM_VGIC_GRP_CTRL 4#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 +/* Device Control API on vcpu fd */ +#define KVM_ARM_VCPU_PMU_V3_CTRL 0 +#define KVM_ARM_VCPU_PMU_V3_IRQ 0 +#define KVM_ARM_VCPU_PMU_V3_INIT 1 +/* KVM_IRQ_LINE irq field index values */ #define KVM_ARM_IRQ_TYPE_SHIFT 24#define KVM_ARM_IRQ_TYPE_MASK 0xff
linux-headers/asm-powerpc/epapr_hcalls.h +2 -2
@@ -78,7 +78,7 @@#define EV_SUCCESS 0#define EV_EPERM 1/* Operation not permitted */ #define EV_ENOENT 2/* Entry Not Found */ -#define EV_EIO 3/* I/O error occured */ +#define EV_EIO 3/* I/O error occurred */ #define EV_EAGAIN 4/* The operation had insufficient * resources to complete and should be * retried
@@ -89,7 +89,7 @@#define EV_ENODEV 7/* No such device */ #define EV_EINVAL 8/* An argument supplied to the hcall was out of range or invalid */ -#define EV_INTERNAL 9/* An internal error occured */ +#define EV_INTERNAL 9/* An internal error occurred */ #define EV_CONFIG 10/* A configuration error was detected */ #define EV_INVALID_STATE 11/* The object is in an invalid state */ #define EV_UNIMPLEMENTED 12/* Unimplemented hypercall */
linux-headers/asm-powerpc/kvm.h +9 -0
@@ -333,6 +333,15 @@ struct kvm_create_spapr_tce {__u32 window_size; }; +/* for KVM_CAP_SPAPR_TCE_64 */ +struct kvm_create_spapr_tce_64 { +__u64 liobn; +__u32 page_shift; +__u32 flags; +__u64 offset;/* in pages */ +__u64 size;/* in pages */ +}; +/* for KVM_ALLOCATE_RMA */ struct kvm_allocate_rma {__u64 rma_size;
linux-headers/asm-x86/unistd_32.h +2 -0
@@ -375,5 +375,7 @@#define __NR_membarrier 375#define __NR_mlock2 376#define __NR_copy_file_range 377 +#define __NR_preadv2 378 +#define __NR_pwritev2 379#endif /* _ASM_X86_UNISTD_32_H */
linux-headers/asm-x86/unistd_64.h +2 -0
@@ -328,5 +328,7 @@#define __NR_membarrier 324#define __NR_mlock2 325#define __NR_copy_file_range 326 +#define __NR_preadv2 327 +#define __NR_pwritev2 328#endif /* _ASM_X86_UNISTD_64_H */
linux-headers/linux/kvm.h +11 -0
@@ -157,6 +157,7 @@ struct kvm_s390_skeys { struct kvm_hyperv_exit { #define KVM_EXIT_HYPERV_SYNIC 1 +#define KVM_EXIT_HYPERV_HCALL 2 __u32 type; union { struct {
@@ -165,6 +166,11 @@ struct kvm_hyperv_exit {__u64 evt_page;__u64 msg_page; } synic; +struct { +__u64 input; +__u64 result; +__u64 params[2 ]; + } hcall; } u; };
@@ -856,6 +862,9 @@ struct kvm_ppc_smmu_info {#define KVM_CAP_IOEVENTFD_ANY_LENGTH 122#define KVM_CAP_HYPERV_SYNIC 123#define KVM_CAP_S390_RI 124 +#define KVM_CAP_SPAPR_TCE_64 125 +#define KVM_CAP_ARM_PMU_V3 126 +#define KVM_CAP_VCPU_ATTRIBUTES 127#ifdef KVM_CAP_IRQ_ROUTING
@@ -1148,6 +1157,8 @@ struct kvm_s390_ucas_mapping {/* Available with KVM_CAP_PPC_ALLOC_HTAB */ #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32)#define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) +#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \ + struct kvm_create_spapr_tce_64)/* Available with KVM_CAP_RMA */ #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma)/* Available with KVM_CAP_PPC_HTAB_FD */
linux-headers/linux/userfaultfd.h +1 -1
@@ -78,7 +78,7 @@ struct uffd_msg {__u64 reserved3; } reserved; } arg; -} __packed; +} __attribute__((packed));/* * Start at 0x12 and not at 0 to be more strict against bugs.
linux-headers/linux/vfio.h +90 -2
116 lines not on this page · raw message
linux-headers/linux/vhost.h +6 -0
@@ -126,6 +126,12 @@ struct vhost_memory {#define VHOST_SET_VRING_CALL _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)/* Set eventfd to signal an error */ #define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file) +/* Set busy loop timeout (in us) */ +#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x23, \ + struct vhost_vring_state) +/* Get busy loop timeout (in us) */ +#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x24, \ + struct vhost_vring_state)/* VHOST_NET specific defines */
Signature · 1 line
2.5.0
PATCH 2/2 tap: vhost busy polling support
In reply to Jason WangThis patch add the capability of basic vhost net busy polling which is supported by recent kernel. User could configure the maximum number of us that could be spent on busy polling through a new property of tap "vhost_poll_us".
--- hw/net/vhost_net.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/virtio/vhost-backend.c | 8 ++++++++ hw/virtio/vhost.c | 40 ++++++++++++++++++++++++++++++++++++++- include/hw/virtio/vhost-backend.h | 3 +++ include/hw/virtio/vhost.h | 3 ++- include/net/vhost_net.h | 1 + net/tap.c | 10 ++++++++-- net/vhost-user.c | 1 + qapi-schema.json | 3 ++- 10 files changed, 66 insertions(+), 7 deletions(-)
hw/net/vhost_net.c +1 -1
@@ -166,7 +166,7 @@ struct vhost_net *vhost_net_init(VhostNetOptions *options) } r =vhost_dev_init (&net->dev, options->opaque, - options->backend_type); + options->backend_type, options->busyloop_timeout);if (r <0 ) { goto fail; }
hw/scsi/vhost-scsi.c +1 -1
@@ -246,7 +246,7 @@ static void vhost_scsi_realize(DeviceState *dev, Error **errp) s->dev.backend_features =0 ; ret =vhost_dev_init (&s->dev, (void *)(uintptr_t )vhostfd, -VHOST_BACKEND_TYPE_KERNEL ); +VHOST_BACKEND_TYPE_KERNEL ,0 );if (ret <0 ) {error_setg (errp,"vhost-scsi: vhost initialization failed: %s" ,strerror (-ret));
hw/virtio/vhost-backend.c +8 -0
@@ -138,6 +138,12 @@ static int vhost_kernel_set_vring_call(struct vhost_dev *dev,return vhost_kernel_call (dev,VHOST_SET_VRING_CALL , file); } +static int vhost_kernel_set_vring_busyloop_timeout (struct vhost_dev *dev, +struct vhost_vring_state *s) +{ +return vhost_kernel_call (dev,VHOST_SET_VRING_BUSYLOOP_TIMEOUT , s); +} +static int vhost_kernel_set_features (struct vhost_dev *dev,uint64_t features) {
@@ -185,6 +191,8 @@ static const VhostOps kernel_ops = { .vhost_get_vring_base = vhost_kernel_get_vring_base, .vhost_set_vring_kick = vhost_kernel_set_vring_kick, .vhost_set_vring_call = vhost_kernel_set_vring_call, + .vhost_set_vring_busyloop_timeout = + vhost_kernel_set_vring_busyloop_timeout, .vhost_set_features = vhost_kernel_set_features, .vhost_get_features = vhost_kernel_get_features, .vhost_set_owner = vhost_kernel_set_owner,
hw/virtio/vhost.c +39 -1
@@ -963,6 +963,28 @@ static void vhost_eventfd_del(MemoryListener *listener, { } +static int vhost_virtqueue_set_busyloop_timeout (struct vhost_dev *dev, +int n,uint32_t timeout) +{ +int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index (dev, n); +struct vhost_vring_state state = { + .index = vhost_vq_index, + .num = timeout, + }; +int r; + +if (!dev->vhost_ops->vhost_set_vring_busyloop_timeout) { +return -EINVAL ; + } + + r = dev->vhost_ops->vhost_set_vring_busyloop_timeout (dev, &state); +if (r) { +return r; + } + +return 0 ; +} +static int vhost_virtqueue_init (struct vhost_dev *dev,struct vhost_virtqueue *vq,int n) {
@@ -993,7 +1015,7 @@ static void vhost_virtqueue_cleanup(struct vhost_virtqueue *vq) }int vhost_dev_init (struct vhost_dev *hdev,void *opaque, -VhostBackendType backend_type) +VhostBackendType backend_type,uint32_t busyloop_timeout) {uint64_t features;int i, r;
@@ -1034,6 +1056,17 @@ int vhost_dev_init(struct vhost_dev *hdev, void *opaque, goto fail_vq; } } + +if (busyloop_timeout) { +for (i =0 ; i < hdev->nvqs; ++i) { + r =vhost_virtqueue_set_busyloop_timeout (hdev, hdev->vq_index + i, + busyloop_timeout); +if (r <0 ) { + goto fail_busyloop; + } + } + } + hdev->features = features; hdev->memory_listener = (MemoryListener ) {
@@ -1076,6 +1109,11 @@ int vhost_dev_init(struct vhost_dev *hdev, void *opaque, hdev->memory_changed = false;memory_listener_register (&hdev->memory_listener, &address_space_memory);return 0 ; +fail_busyloop: +while (--i >=0 ) { +vhost_virtqueue_set_busyloop_timeout (hdev, hdev->vq_index + i,0 ); + } + i = hdev->nvqs; fail_vq:while (--i >=0 ) {vhost_virtqueue_cleanup (hdev->vqs + i);
include/hw/virtio/vhost-backend.h +3 -0
@@ -57,6 +57,8 @@ typedef int (*vhost_set_vring_kick_op)(struct vhost_dev *dev, struct vhost_vring_file *file);typedef int (*vhost_set_vring_call_op )(struct vhost_dev *dev,struct vhost_vring_file *file); +typedef int (*vhost_set_vring_busyloop_timeout_op )(struct vhost_dev *dev, +struct vhost_vring_state *r);typedef int (*vhost_set_features_op )(struct vhost_dev *dev,uint64_t features); typedef int (*vhost_get_features_op)(struct vhost_dev *dev,
@@ -91,6 +93,7 @@ typedef struct VhostOps {vhost_get_vring_base_op vhost_get_vring_base;vhost_set_vring_kick_op vhost_set_vring_kick;vhost_set_vring_call_op vhost_set_vring_call; +vhost_set_vring_busyloop_timeout_op vhost_set_vring_busyloop_timeout;vhost_set_features_op vhost_set_features;vhost_get_features_op vhost_get_features;vhost_set_owner_op vhost_set_owner;
include/hw/virtio/vhost.h +2 -1
@@ -64,7 +64,8 @@ struct vhost_dev { };int vhost_dev_init (struct vhost_dev *hdev,void *opaque, -VhostBackendType backend_type); +VhostBackendType backend_type, +uint32_t busyloop_timeout);void vhost_dev_cleanup (struct vhost_dev *hdev);int vhost_dev_start (struct vhost_dev *hdev,VirtIODevice *vdev);void vhost_dev_stop (struct vhost_dev *hdev,VirtIODevice *vdev);
include/net/vhost_net.h +1 -0
@@ -10,6 +10,7 @@ typedef struct vhost_net VHostNetState;typedef struct VhostNetOptions {VhostBackendType backend_type;NetClientState *net_backend; +uint32_t busyloop_timeout;void *opaque; }VhostNetOptions ;
net/tap.c +8 -2
@@ -661,6 +661,11 @@ static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer, options.backend_type =VHOST_BACKEND_TYPE_KERNEL ; options.net_backend = &s->nc; +if (tap->has_vhost_poll_us) { + options.busyloop_timeout = tap->vhost_poll_us; + }else { + options.busyloop_timeout =0 ; + }if (vhostfdname) { vhostfd =monitor_fd_param (cur_mon, vhostfdname, &err);
@@ -684,8 +689,9 @@ static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer, "vhost-net requested but could not be initialized");return ; } - }else if (vhostfdname) { -error_setg (errp,"vhostfd= is not valid without vhost" ); + }else if (vhostfdname || tap->has_vhost_poll_us) { +error_setg (errp,"vhostfd(s)= or vhost_poll_us= is not valid" +" without vhost" ); } }
net/vhost-user.c +1 -0
@@ -80,6 +80,7 @@ static int vhost_user_start(int queues, NetClientState *ncs[]) options.net_backend = ncs[i]; options.opaque = s->chr; + options.busyloop_timeout =0 ; s->vhost_net =vhost_net_init (&options);if (!s->vhost_net) {error_report ("failed to init vhost_net for queue %d" , i);
qapi-schema.json +2 -1
@@ -2532,7 +2532,8 @@ '*vhostfd': 'str', '*vhostfds': 'str', '*vhostforce': 'bool', - '*queues': 'uint32'} } + '*queues': 'uint32', + '*vhost_poll_us': 'uint32'} } ## # @NetdevSocketOptions
Signature · 1 line
2.5.0
Re: [Qemu-devel] [PATCH 2/2] tap: vhost busy polling support
qapi-schema.json line 2536
Quoted 11 lines · Jason Wang
qapi-schema.json +2
-1@@ -2532,7 +2532,8 @@ '*vhostfd': 'str', '*vhostfds': 'str', '*vhostforce': 'bool', - '*queues': 'uint32'} } + '*queues': 'uint32', + '*vhost_poll_us': 'uint32'} }
Need to update the comment too?
Fam
Re: [Qemu-devel] [PATCH 2/2] tap: vhost busy polling support
Quoted 14 lines · Fam Zheng
qapi-schema.json line 2536
Quoted 11 lines · Jason Wang
qapi-schema.json +2
-1@@ -2532,7 +2532,8 @@ '*vhostfd': 'str', '*vhostfds': 'str', '*vhostforce': 'bool', - '*queues': 'uint32'} } + '*queues': 'uint32', + '*vhost_poll_us': 'uint32'} }Need to update the comment too?
Quoted 1 line
Fam
I thought I did, but looks not :(
Will do it in V2.
Re: [Qemu-devel] [PATCH 2/2] tap: vhost busy polling support
In reply to Jason WangQuoted 10 lines · Jason Wang
This patch add the capability of basic vhost net busy polling which is supported by recent kernel. User could configure the maximum number of us that could be spent on busy polling through a new property of tap "
vhost_poll_us".Signed-off-by Jason Wang <[email protected]>---
+++
b/qapi-schema.json
qapi-schema.json line 2536
Quoted 6 lines
qapi-schema.json +2
-1@@ -2532,7 +2532,8 @@ '*vhostfd': 'str', '*vhostfds': 'str', '*vhostforce': 'bool', - '*queues': 'uint32'} } + '*queues': 'uint32', + '*vhost_poll_us': 'uint32'} }
Missing documentation.
New interfaces should prefer '-' over '_'; but this is an existing interface where we already have 'vnet_hdr', so intra-command consistency makes your naming okay.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Re: [Qemu-devel] [PATCH 2/2] tap: vhost busy polling support
Quoted 6 lines · Eric Blake
Quoted 5 lines · Jason Wang
This patch add the capability of basic vhost net busy polling which is supported by recent kernel. User could configure the maximum number of us that could be spent on busy polling through a new property of tap "
vhost_poll_us".
Quoted 11 lines
qapi-schema.json line 2536
Quoted 10 lines
Signed-off-by Jason Wang <[email protected]>---
+++b/qapi-schema.jsonqapi-schema.json +2
-1@@ -2532,7 +2532,8 @@ '*vhostfd': 'str', '*vhostfds': 'str', '*vhostforce': 'bool', - '*queues': 'uint32'} } + '*queues': 'uint32', + '*vhost_poll_us': 'uint32'} }Missing documentation.
Right.
Quoted 5 lines
New interfaces should prefer '-' over '_'; but this is an existing interface where we already have '
vnet_hdr', so intra-command consistency makes your naming okay.
Will change to use '-'.
Thanks
Quoted 8 lines · On Mon, 21 Mar 2016 13:25:53 +0800 Jason Wang <[email protected]> wrote:
Hi:
This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - '
vhost_poll_us' which is the maximum number of us could be spent for busy polling.Please reivew.
Hi Jason !
Do you plan to post v2 with the missing documentation soon ?
Thanks.
--
Greg
Quoted 32 lines
Thanks
Jason Wang (2):
update linux headers to 4.5.0-rc5+
tap: vhost busy polling supporthw/net/vhost_net.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/virtio/vhost-backend.c | 8 +++ hw/virtio/vhost.c | 40 ++++++++++- include/hw/virtio/vhost-backend.h | 3 + include/hw/virtio/vhost.h | 3 +- include/net/vhost_net.h | 1 + include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +- include/standard-headers/linux/virtio_blk.h | 6 +- linux-headers/asm-arm64/kvm.h | 6 ++ linux-headers/asm-powerpc/epapr_hcalls.h | 4 +- linux-headers/asm-powerpc/kvm.h | 9 +++ linux-headers/asm-x86/unistd_32.h | 2 + linux-headers/asm-x86/unistd_64.h | 2 + linux-headers/linux/kvm.h | 11 +++ linux-headers/linux/userfaultfd.h | 2 +- linux-headers/linux/vfio.h | 92 ++++++++++++++++++++++++- linux-headers/linux/vhost.h | 6 ++ net/tap.c | 10 ++- net/vhost-user.c | 1 + qapi-schema.json | 3 +- 24 files changed, 206 insertions(+), 19 deletions(-)
Quoted 10 lines · Greg Kurz
Quoted 8 lines · On Mon, 21 Mar 2016 13:25:53 +0800 Jason Wang <[email protected]> wrote:
Quoted 8 lines
Hi:
This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - '
vhost_poll_us' which is the maximum number of us could be spent for busy polling.Please reivew.
Quoted 9 lines
Hi Jason !
Do you plan to post v2 with the missing documentation soon ?
Thanks.
--
Greg
Hi:
Look like it's not 2.6 material, so plan to do it after 2.6 is out. But if you wish, I can post it soon.
Thanks
Quoted 17 lines · On Wed, 6 Apr 2016 09:49:34 +0800 Jason Wang <[email protected]> wrote:
Quoted 16 lines · Greg Kurz
Quoted 8 lines · On Mon, 21 Mar 2016 13:25:53 +0800 Jason Wang <[email protected]> wrote:
Quoted 8 lines
Hi:
This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - '
vhost_poll_us' which is the maximum number of us could be spent for busy polling.Please reivew.
Hi Jason !
Do you plan to post v2 with the missing documentation soon ?
Thanks.
Quoted 7 lines
Quoted 3 lines
--
GregHi:
Look like it's not 2.6 material, so plan to do it after 2.6 is out. But
Sure, it is too late for 2.6, but it looks like a promising feature for 2.7.
Quoted 4 lines
if you wish, I can post it soon.
Thanks
I would appreciate that if that's ok for you.
Thanks !
--
Greg
Quoted 32 lines · Greg Kurz
Quoted 17 lines · On Wed, 6 Apr 2016 09:49:34 +0800 Jason Wang <[email protected]> wrote:
Quoted 17 lines · Greg Kurz
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines · On Mon, 21 Mar 2016 13:25:53 +0800 Jason Wang <[email protected]> wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Hi:
This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - '
vhost_poll_us' which is the maximum number of us could be spent for busy polling.Please reivew.
Hi Jason !
Do you plan to post v2 with the missing documentation soon ?
Thanks.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
--
GregHi:
Look like it's not 2.6 material, so plan to do it after 2.6 is out. But
Sure, it is too late for 2.6, but it looks like a promising feature for 2.7.
Quoted 2 lines
Quoted 2 lines
if you wish, I can post it soon.
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Thanks
I would appreciate that if that's ok for you.
Thanks !
--
Greg
Posted, thanks.