[PATCH] vhost: Make use of the helper macro kthread_run()

2021-10-21 Thread Cai Huoqing
Repalce kthread_create/wake_up_process() with kthread_run() to simplify the code. Signed-off-by: Cai Huoqing --- drivers/vhost/vhost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 59edb5a1ffe2..e67bd5603b5f 100644

[PATCH] vhost scsi: Convert to SPDX identifier

2021-08-21 Thread Cai Huoqing
use SPDX-License-Identifier instead of a verbose license text Signed-off-by: Cai Huoqing --- drivers/vhost/scsi.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 46f897e41217..532e204f2b1b 100644 --- a/drivers

[PATCH] vdpa: Make use of PFN_PHYS/PFN_UP/PFN_DOWN helper macro

2021-08-01 Thread Cai Huoqing
it's a nice refactor to make use of PFN_PHYS/PFN_UP/PFN_DOWN helper macro Signed-off-by: Cai Huoqing --- drivers/vhost/vdpa.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 210ab35

RE: [PATCH 1/2] virtio_ring: fix error - unknown type name 'spinlock_t'

2021-07-18 Thread Cai,Huoqing
Is it a error, try “make virtio” in the path of linux/tools/ with config VHOST_IOTLB=n -Original Message- From: Cai,Huoqing Sent: 2021年7月14日 10:29 To: sgarz...@redhat.com; m...@redhat.com; jasow...@redhat.com Cc: virtualization@lists.linux-foundation.org; linux-ker...@vger.kernel.org

[PATCH 2/2] virtio_ring: fix error - 'prev' and 'head_flags' may be used uninitialized in this function

2021-07-13 Thread Cai Huoqing
when run "make virtio" in linux/tools, the error: "'prev' and 'head_flags' may be used uninitialized in this function" occurs Signed-off-by: Cai Huoqing --- drivers/virtio/virtio_ring.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

[PATCH 1/2] virtio_ring: fix error - unknown type name 'spinlock_t'

2021-07-13 Thread Cai Huoqing
when run "make virtio" in linux/tools, the error: unknown type name 'spinlock_t' occurs Signed-off-by: Cai Huoqing --- include/linux/vringh.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/vringh.h b/include/linux/vringh.h index 84db7b8f912f..ff21c

[PATCH 0/2] virtio_ring: fix errors to make virtio tools

2021-07-13 Thread Cai Huoqing
the errors occurs when run "make virtio" in linux/tools Cai Huoqing (2): virtio_ring: fix error - unknown type name 'spinlock_t' virtio_ring: fix error - 'prev' and 'head_flags' may be used uninitialized in this function drivers/virtio/virtio_r

[PATCH v2] virtio_net/vringh: add "else { }" according coding style

2021-06-23 Thread Cai Huoqing
coding-style.rst shows that: if (condition) { do_this(); do_that(); } else { otherwise(); } Signed-off-by: Cai Huoqing --- drivers/net/virtio_net.c | 3 ++- drivers/vhost/vringh.c | 3 ++- 2 files changed, 4 insertions

[PATCH] add "else {...}" according coding style

2021-06-23 Thread Cai Huoqing
coding-style.rst shows that: if (condition) { do_this(); do_that(); } else { otherwise(); } Signed-off-by: Cai Huoqing --- drivers/net/virtio_net.c | 3 ++- drivers/vhost/vringh.c | 3 ++- 2 files changed, 4 insertions