[PATCH v2] virtio-blk: seg_max do not subtract 2 if host has VIRTIO_RING_F_INDIRECT_DESC feature

2020-11-19 Thread zhaoxin\RockCuioc
all discontinuous,when use ceph the size of 504k will affect performance.This patch should be used in guest kernel version>=4.14, kernel after this version virtio driver does not judge total_sg and vring num if the host supports indirect descriptor tables. Signed-off-by: zhaoxin\RockCuioc --- hw

[PATCH] virtio-blk: seg_max do not subtract 2 if host has VIRTIO_RING_F_INDIRECT_DESC feature

2020-11-19 Thread zhaoxin\RockCuioc
performance.This patch should be used in guest kernel version>=4.14, kernel after this version virtio driver does not judge total_sg and vring num if the host supports indirect descriptor tables. Signed-off-by: zhaoxin\RockCuioc --- hw/block/virtio-blk.c | 6 +- 1 file changed, 5 inserti

[PATCH v2] ide:do nothing for identify cmd if no any device attached

2020-08-20 Thread zhaoxin\RockCuioc
a while. This action may be stop windows LOGO atomic for a while too on a poor performance CPU. Signed-off-by: zhaoxin\RockCuioc --- hw/ide/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index d997a78e47..26d86f4b40 100644 --- a/hw/ide

[PATCH] ide:do nothing for identify cmd if no any device attached

2020-08-16 Thread zhaoxin\RockCuioc
hile too on a poor performance CPU. Signed-off-by: zhaoxin\RockCuioc --- hw/ide/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index d997a78e47..26d86f4b40 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -2073,8 +2073,9 @@

[PATCH] ide:do nothing for identify cmd if no any device attached

2020-08-14 Thread zhaoxin\RockCuioc
From: "zhaoxin\\rockcuioc" This patch is for avoiding win7 IDE driver polling 0x1f7 when no any device attached. During Win7 VM boot procedure, if use virtio for disk and there is no any device be attached on hda & hdb, the win7 IDE driver would poll 0x1f7 for a while. This acti