[Qemu-devel] [PATCH V5 1/4] target-i386: introduce coalesced_pio kvm header update

2018-08-30 Thread Peng Hao
add coalesced_pio's struct and KVM_CAP_COALESCED_PIO header. Signed-off-by: Peng Hao Reviewed-by: Eduardo Habkost --- accel/kvm/kvm-all.c | 4 ++-- linux-headers/linux/kvm.h | 11 +-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm

[Qemu-devel] [PATCH V5 2/4] target-i386:add coalesced_pio API

2018-08-30 Thread Peng Hao
Signed-off-by: Peng Hao Reviewed-by: Eduardo Habkost --- accel/kvm/kvm-all.c | 57 +++ include/exec/memory.h | 4 ++-- memory.c | 4 ++-- 3 files changed, 57 insertions(+), 8 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel

[Qemu-devel] [PATCH V5 3/4] target-i386: add rtc 0x70 port as coalesced_pio

2018-08-30 Thread Peng Hao
Signed-off-by: Peng Hao Reviewed-by: Eduardo Habkost --- hw/timer/mc146818rtc.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 6f1f723..b19ef51 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -70,6 +70,7

[Qemu-devel] [PATCH V5 0/4] introduce coalesced pio support

2018-08-30 Thread Peng Hao
der, improve compatibility. Changes v3 --> v4 modify coalesced_mmio_{add|del} to coalesced_io_{add|del} delete unnecessary macro define Peng Hao (4): target-i386: introduce coalesced_pio kvm header update target-i386: add coalesced_pio API target-i386: add rtc 0x70 port as coalesc

[Qemu-devel] [PATCH V4 2/4] target-i386:add coalesced_pio API

2018-08-24 Thread Peng Hao
Signed-off-by: Peng Hao --- accel/kvm/kvm-all.c | 57 +++ include/exec/memory.h | 4 ++-- memory.c | 4 ++-- 3 files changed, 57 insertions(+), 8 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 4a3909d

[Qemu-devel] [PATCH V4 0/4] introduce coalesced pio support

2018-08-24 Thread Peng Hao
consideration in changing coalesecd_mmio's naming in kernel and qemu together.So maybe another patch does it. Peng Hao (4): target-i386: introduce coalesced_pio kvm header update target-i386:add coalesced_pio API target-i386: add rtc 0x70 port as coalesced_pio target-i386: add i440fx 0xcf8 port

[Qemu-devel] [PATCH V4 1/4] target-i386: introduce coalesced_pio kvm header update

2018-08-24 Thread Peng Hao
add coalesced_pio's struct and KVM_CAP_COALESCED_PIO header. Signed-off-by: Peng Hao --- accel/kvm/kvm-all.c | 4 ++-- linux-headers/linux/kvm.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index eb7db92..4a3909d

[Qemu-devel] [PATCH V4 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio

2018-08-24 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/pci-host/piix.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e60834..da73743 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -327,6 +327,10 @@ static void i440fx_pcihost_realize(DeviceState *dev

[Qemu-devel] [PATCH V4 3/4] target-i386: add rtc 0x70 port as coalesced_pio

2018-08-24 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/timer/mc146818rtc.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 6f1f723..b19ef51 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -70,6 +70,7 @@ typedef struct RTCState

[Qemu-devel] [PATCH V3 2/4] target-i386:add coalesced_pio API

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- accel/kvm/kvm-all.c | 58 - include/exec/memattrs.h | 2 +- 2 files changed, 53 insertions(+), 7 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index eb7db92..830745e 100644 --- a/accel/kvm/kvm

[Qemu-devel] [PATCH V3 0/4] introduce coalesced pio support

2018-08-23 Thread Peng Hao
consideration in changing coalesecd_mmio's naming in kernel and qemu together.So maybe another patch does it. Peng Hao (4): target-i386: introduce coalesced_pio kvm header update target-i386: add coalesced_pio API target-i386: add rtc 0x70 port as coalesced_pio target-i386: add i440fx 0xcf8

[Qemu-devel] [PATCH V3 1/4] target-i386: introduce coalesced_pio kvm header update

2018-08-23 Thread Peng Hao
add coalesced_pio's struct and KVM_CAP_COALESCED_PIO. Signed-off-by: Peng Hao --- linux-headers/linux/kvm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 98f389a..747b473 100644 --- a/linux-headers/linux

[Qemu-devel] [PATCH V3 3/4] target-i386: add rtc 0x70 port as coalesced_pio

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/timer/mc146818rtc.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 6f1f723..1ef5f77 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -70,6 +70,7 @@ typedef struct RTCState

[Qemu-devel] [PATCH V3 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/pci-host/piix.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e60834..da73743 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -327,6 +327,10 @@ static void i440fx_pcihost_realize(DeviceState *dev

[Qemu-devel] [PATCH] pci-bridge/dec: remove unused code

2018-08-21 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/pci-bridge/dec.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c index 84492d5..ab39185 100644 --- a/hw/pci-bridge/dec.c +++ b/hw/pci-bridge/dec.c @@ -31,16 +31,6 @@ #include "hw/pci/pci_bridge.h"

[Qemu-devel] [PATCH] char-pty: avoid assertion warning

2018-01-25 Thread Peng Hao
and set s->open_source=NULL. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- chardev/char-pty.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chardev/char-pty.c b/chardev/char-pty.c index 89315e6..da0f286 100644 --- a/chardev/char-pty.c +++ b/chardev/c

[Qemu-devel] [RFC PATCH V2] target-i386 : reduce rtc 0x70 access vm-exit time

2017-08-13 Thread Peng Hao
Samples Samples% Time% Min Time Max Time Avg time 0x70:POUT 10632.02%29.47%0us 10us 1.57us (+- 7.38%) the patch is a part of optimizing rtc 0x70 port access. Another is in kernel. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- accel/kvm/kvm-all.c

[Qemu-devel] [PATCH] target-i386: reduce rtc 0x70 access vm-exit time

2017-08-11 Thread Peng Hao
Samples Samples% Time% Min Time Max Time Avg time 0x70:POUT 10632.02%29.47%0us 10us 1.57us (+- 7.38%) the patch is a part of optimizing rtc 0x70 port access. Another is in kernel. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- accel/kvm/kvm-all.c

[Qemu-devel] [PATCH] target-i386 : reduce rtc 0x70 access vm-exit time

2017-08-02 Thread Peng Hao
-by: Peng Hao <peng.h...@zte.com.cn> Reviewed-by: Liu Yi <liu.y...@zte.com.cn> --- accel/kvm/kvm-all.c | 17 + linux-headers/linux/kvm.h | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 46ce479..68

[Qemu-devel] [PATCH] target-i386 : fix a race condition result to lost INIT

2017-07-30 Thread Peng Hao
SET_STATE, add KVM_VCPUEVENT_VALID_SMM in events.flags.I think it is better to modify in qemu. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- target/i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index a6613e1.

[Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Peng Hao
and REG_A_UIP will not vary.At last windows kernel will repeat to check REG_A_UIP all the time. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Signed-off-by: Liu Yi <liu.y...@zte.com.cn> --- hw/timer/mc146818rtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[Qemu-devel] [PATCH V2] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Peng Hao
and REG_A_UIP will not vary.At last windows kernel will repeat to check REG_A_UIP all the time. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Signed-off-by: Liu Yi <liu.y...@zte.com.cn> --- hw/timer/mc146818rtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[Qemu-devel] [PATCH] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Peng Hao
and REG_A_UIP will not vary.At last windows kernel will repeat to check REG_A_UIP all the time. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Signed-off-by: Liu Yi <liu.y...@zte.com.cn> --- hw/timer/mc146818rtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[Qemu-devel] [PATCH V2] vhost: fix a migration failed because of vhost region merge

2017-07-22 Thread Peng Hao
may be more than vhost slot limit. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Signed-off-by: Wang Yechao <wang.yechao...@zte.com.cn> --- hw/mem/pc-dimm.c| 2 +- include/sysemu/sysemu.h | 1 + vl.c| 5 + 3 files changed, 7 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Peng Hao
of several dimms. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Signed-off-by: Wang Yechao <wang.yechao...@zte.com.cn> --- hw/mem/pc-dimm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index ea67b46..bb0fa08 100644 --- a/hw/mem/pc-dim

[Qemu-devel] [PATCH] qga-win32: remove a redundancy code

2017-07-15 Thread Peng Hao
In the first line of run_agent,it has set ga_state = s,don't need set ga_state = s again behind. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- qga/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/main.c b/qga/main.c index 405c129..dcd6104 100644 ---

[Qemu-devel] [PATCH V2] target-i386:kvm_get/put_vcpu_events don't handle sipi_vector

2017-07-14 Thread Peng Hao
qemu call kvm_get_vcpu_events, and kernel return sipi_vector always 0, never valid when reporting to user space. But qemu call kvm_put_vcpu_events will make sipi_vector in kernel be 0. This will accidently modify sipi_vector when sipi_vector in kernel is not 0. Signed-off-by: Peng Hao <pen

[Qemu-devel] [PATCH V3] chardev: fix parallel device can't be reconnect

2017-07-12 Thread Peng Hao
Parallel device don't register be->chr_can_read function, but remote disconnect event is handled in chr_read.So connected parallel device can not detect remote disconnect event. The chardevs with chr_can_read=NULL has the same problem. Signed-off-by: Peng Hao <peng.h...@zte.com.cn>

[Qemu-devel] [PATCH] target-i386:kvm_get/put_vcpu_events don't handle sipi_vector

2017-07-11 Thread Peng Hao
qemu call kvm_get_vcpu_events, and kernel return sipi_vector always 0, never valid when reporting to user space. But qemu call kvm_put_vcpu_events will make sipi_vector in kernel be 0. This will accidently modify sipi_vector when sipi_vector in kernel is not 0. Signed-off-by: Peng Hao <pen

[Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-10 Thread Peng Hao
Parallel device don't register be->chr_can_read function, but remote disconnect event is handled in chr_read.So connected parallel device can not detect remote disconnect event. The chardevs with chr_can_read=NULL has the same problem. Signed-off-by: Peng Hao <peng.h...@zte.com.cn>

[Qemu-devel] [PATCH] chardev: fix parallel device can't be reconnect.

2017-07-10 Thread Peng Hao
Parallel device don't register be->chr_can_read function, but remote disconnect event is handled in chr_read. So connected parallel device can not detect remote disconnect event. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Reviewed-by: Wang Yechao <wang.yechao...@zte.com.cn> --

[Qemu-devel] [PATCH] audio: st_rate_flow exist a dead loop

2017-07-04 Thread Peng Hao
From: Hao Peng <peng.h...@zte.com.cn> if audio device is opend for a long time in windows vm, there is a uint32_t varaible reversal. It will result to a dead loop. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> Reviewed-by: Liu Yun <liu.y...@zte.com.cn> Reviewed-by: Wang Y

[Qemu-devel] [PATCH] vhost: fix a memory leak

2017-07-04 Thread Peng Hao
vhost exists a call for g_file_get_contents, but not call g_free. Signed-off-by: Peng Hao<peng.h...@zte.com.cn> --- hw/virtio/vhost-backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index 4e31de1..2c481d6 100644 --- a/hw/

<    1   2