Re: [Qemu-devel] [PATCH V2] vhost: fix a migration failed becauseof vhost region merge

2017-07-28 Thread peng.hao2
>On Wed, 26 Jul 2017 19:01:39 +0300 >"Michael S. Tsirkin" wrote: >> On Wed, Jul 26, 2017 at 04:05:43PM +0200, Igor Mammedov wrote: >> > On Tue, 25 Jul 2017 22:47:18 +0300 >> > "Michael S. Tsirkin" wrote: >> > >> > > On Tue, Jul 25, 2017 at 10:44:38AM

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

2017-07-11 Thread peng.hao2
发件人: 收件人:彭浩10096742 抄送人: 王业超10154425 日 期 :2017年07月11日 16:31 主 题 :Re: [PATCH V2] chardev: fix parallel device can't be reconnect On 11/07/2017 13:47, Peng Hao wrote: > Parallel device don't

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

2017-07-10 Thread peng.hao2
原始邮件 发件人: 收件人:彭浩10096742 抄送人:王业超10154425 日 期 :2017年07月10日 17:17 主 题 :Re: [Qemu-devel] [PATCH] chardev: fix parallel device can't be reconnect. Hi On Mon, Jul 10, 2017 at 10:36 AM Peng Hao

[Qemu-devel] 答复: Re: [PATCH] target-i386:kvm_get/put_vcpu_events don't handlesipi_vector

2017-07-12 Thread peng.hao2
发件人: 收件人:彭浩10096742 抄送人: 日 期 :2017年07月13日 01:01 主 题 :Re: [PATCH] target-i386:kvm_get/put_vcpu_events don't handlesipi_vector On

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

2017-07-20 Thread peng.hao2
发件人: 收件人: 抄送人: 彭浩10096742王业超10154425 日 期 :2017年07月19日 23:53 主 题 :Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because ofvhost region merge

[Qemu-devel] 答复: Re: [PATCH] vhost: fix a migration failed because ofvhost region merge

2017-07-19 Thread peng.hao2
发件人: 收件人:彭浩10096742 抄送人: 王业超10154425 日 期 :2017年07月19日 15:51 主 题 :Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because ofvhost region merge On Wed, 19 Jul 2017 23:17:32 +0800 Peng Hao wrote: >

[Qemu-devel] 答复: Re: [PATCH] vhost: fix a migration failed because ofvhost region merge

2017-07-20 Thread peng.hao2
* Michael S. Tsirkin (m...@redhat.com) wrote: >> On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Jul 2017 12:46:13 +0100 > > > "Dr. David Alan Gilbert" wrote: > > > > > > > * Igor Mammedov (imamm...@redhat.com) wrote: > > > > > On Wed, 19

[Qemu-devel] 答复: Re: 答复: Re: [PATCH] vhost: fix a migration failedbecause ofvhost region merge

2017-07-21 Thread peng.hao2
> > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Jul 2017 12:46:13 +0100 > > > "Dr. David Alan Gilbert" wrote: > > > > > > > * Igor Mammedov (imamm...@redhat.com) wrote: > > > > > On Wed, 19 Jul 2017 23:17:32 +0800 > > > > > Peng Hao

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vmstartup

2017-07-25 Thread peng.hao2
>On 25/07/2017 06:14, peng.h...@zte.com.cn wrote: >>> On 24/07/2017 20:35, Peng Hao wrote: >> >> >> >> >> When a windows vm starts, periodic timer of rtc will stop several times. windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt flags will not be

Re: [Qemu-devel] [PATCH] vhost: fix amigration failedbecause ofvhost region merge

2017-07-22 Thread peng.hao2
> On Sat, Jul 22, 2017 at 01:49:20PM +0800, peng.h...@zte.com.cn wrote: > > some regions can not merge when just part of devices have realized. > > > > when all devices are realized on destination, these regions can be merged > > again > > > > and the used slots can satisfy the vhost slot

Re: [Qemu-devel] [PATCH V2] vhost: fix a migration failedbecauseof vhost region merge

2017-07-24 Thread peng.hao2
>On Mon, 24 Jul 2017 18:32:35 +0800 (CST) > wrote: >> > On Sun, 23 Jul 2017 20:46:11 +0800 >> > Peng Hao wrote: >> >> > > When a guest that has several hotplugged dimms is migrated, on >> > > destination it will fail to resume. Because

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vmstartup

2017-07-24 Thread peng.hao2
I'm sorry I copy and paste code to make a patch, but I make a mistake to send a uncompleted patch. 彭浩 penghao IT开发工程师 IT Development Engineer 操作系统产品部/中心研究院/系统产品 OS Product Department/Central R&D Institute/System Product 成都市天府大道中段800号中兴大厦A座 T: +86 028 18123274005

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

2017-07-24 Thread peng.hao2
>On 24/07/2017 20:35, Peng Hao wrote: >> When a windows vm starts, periodic timer of rtc will stop several times. >> windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt >> flags will not be cleared when periodic timer stops and the update timer >> will switch to alarm

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop inwindowsvmstartup

2017-07-26 Thread peng.hao2
> On 26/07/2017 03:28, peng.h...@zte.com.cn wrote: > > > > > > when the problem happens , windows kernel is checking whether REG_A_UIP is > > changing after periodic timer has stopped. windows kernel access REG_A > > according to INB instrunction and it will spend several microseconds

[Qemu-devel] 答复: Re: [PATCH] vhost: fix a migration failed because ofvhost region merge

2017-07-19 Thread peng.hao2
原始邮件 发件人: 收件人: 抄送人: 彭浩10096742王业超10154425 日 期 :2017年07月19日 23:53 主 题 :Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because ofvhost region

Re: [Qemu-devel] [PATCH V2] vhost: fix a migration failed becauseof vhost region merge

2017-07-24 Thread peng.hao2
> On Sun, 23 Jul 2017 20:46:11 +0800 > Peng Hao wrote: > > When a guest that has several hotplugged dimms is migrated, on > > destination it will fail to resume. Because regions on source > > are merged and on destination the order of realizing devices > > is different

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windowsvmstartup

2017-07-25 Thread peng.hao2
>On 25/07/2017 11:29, peng.h...@zte.com.cn wrote: >>>On 25/07/2017 06:14, peng.h...@zte.com.cn wrote: >> > On 24/07/2017 20:35, Peng Hao wrote: >> When a windows vm starts, periodic timer of rtc will stop several times. >> windows kernel will check whether REG_A_UIP

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

2018-08-24 Thread peng.hao2
> On Fri, Aug 24, 2018 at 12:14:47AM +0800, Peng Hao wrote: > > Signed-off-by: Peng Hao > > --- > > accel/kvm/kvm-all.c | 58 > > - > > include/exec/memattrs.h | 2 +- > > 2 files changed, 53 insertions(+), 7 deletions(-) > > >> @@ -536,7

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

2018-08-27 Thread peng.hao2
>> On 25 Aug 2018, at 15:19, Peng Hao wrote: >> >> 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, >> Error **errp) >> >>

Re: [Qemu-devel] [PATCH V4 4/4] target-i386: add i440fx 0xcf8 portascoalesced_pio

2018-08-27 Thread peng.hao2
>On Mon, Aug 27, 2018 at 04:25:00PM +0800, peng.h...@zte.com.cn wrote: >> >> On 25 Aug 2018, at 15:19, Peng Hao wrote: >> >> >> >> 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 >> >> @@

Re: [Qemu-devel] [PATCH V4 4/4] target-i386: add i440fx 0xcf8portascoalesced_pio

2018-09-01 Thread peng.hao2
>On Mon, Aug 27, 2018 at 11:17:49PM +0800, peng.h...@zte.com.cn wrote: >> >On Mon, Aug 27, 2018 at 04:25:00PM +0800, peng.h...@zte.com.cn wrote: >> >> > >> >> >Is there a reason to not register this port as coalesced PIO also for >> >> >Q35? >> >> >In q35_host_realize()? >> >> >If not, I would

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

2018-08-30 Thread peng.hao2
>On Thu, Aug 30, 2018 at 11:50:13PM +0800, Peng Hao wrote: >> add coalesced_pio's struct and KVM_CAP_COALESCED_PIO header. >> >> Signed-off-by: Peng Hao >> Reviewed-by: Eduardo Habkost >I think there was a misunderstanding. I never sent a Reviewed-by >line for this patch, because we need to

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

2018-08-31 Thread peng.hao2
>> +static void kvm_coalesce_pio_add(MemoryListener *listener, >> +MemoryRegionSection *section, >> +hwaddr start, hwaddr size) >> +{ >> +KVMState *s = kvm_state; >> + >> +if (s->coalesced_pio) { >> +struct

Re: [Qemu-devel] [PATCH v3 3/4] hw/misc/pvpanic: Add the MMIO interface

2018-10-18 Thread peng.hao2
> >Signed-off-by: Peng Hao >Signed-off-by: Philippe Mathieu-Daudé >[PMD: Use TYPE_PVPANIC definition, split in 2 patches] >--- >Peng: I hope this is now more obvious how you could reuse the pvpanic device. > Thanks. I will think about your suggestions and patches. >hw/misc/pvpanic.c | 52

Re: [Qemu-devel] [PATCH v3 4/4] hw/arm/virt: Use the pvpanic device

2018-10-18 Thread peng.hao2
>On 18 October 2018 at 14:04, Philippe Mathieu-Daudé wrote: >> Signed-off-by: Peng Hao >> Signed-off-by: Philippe Mathieu-Daudé >> [PMD: Use TYPE_PVPANIC definition, split in 2 patches] >> --- >> default-configs/arm-softmmu.mak | 2 +- >> hw/arm/virt.c | 21

Re: [Qemu-devel] [PATCH] target/arm : add pvpanic mmio device

2018-10-16 Thread peng.hao2
>On 10/17/18 2:23 AM, Peng Hao wrote: >> +++ b/hw/misc/pvpanic-mmio.c >> @@ -0,0 +1,76 @@ >> +#include "qemu/osdep.h" > >New file requires file header w/ copyright and license. I will handle it in new version .Thanks >r~

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

2018-10-16 Thread peng.hao2
On Fri, Aug 31, 2018 at 05:05:02PM +0800, Peng Hao wrote: >> add coalesced_pio's struct and KVM_CAP_COALESCED_PIO header. >> >> Signed-off-by: Peng Hao > >I can merge ths together with q35 patch, but pls >get acks from kvm folks, to this end fix up >commit logs and subjects to match reality and

Re: [Qemu-devel] [PATCH] target/arm : add pvpanic mmio device

2018-10-17 Thread peng.hao2
>Hi Peng, > >On 17/10/2018 11:23, Peng Hao wrote: >> Add pvpanic mmio device that is similar to x86's pvpanic device. > >> >> Signed-off-by: Peng Hao >> --- >> default-configs/arm-softmmu.mak | 2 +- >> hw/arm/virt.c | 21 >> hw/misc/Makefile.objs | 1 +

Re: [Qemu-devel] [PATCH V6 3/5] target-i386: add rtc 0x70 port as coalesced_pio

2018-10-18 Thread peng.hao2
>On 17/10/2018 18:52, Peng Hao wrote: >> +/* register rtc 0x70 port as coalesced_pio */ >> +memory_region_set_flush_coalesced(>io); >> +memory_region_init_io(>coalesced_io, OBJECT(s), _ops, >> + s, "rtc1", 1); >> +isa_register_ioport(isadev, >coalesced_io,

Re: [Qemu-devel] [PATCH V6 3/5] target-i386: add rtc 0x70 port as coalesced_pio

2018-10-18 Thread peng.hao2
>On 18/10/2018 10:03, peng.h...@zte.com.cn wrote: +/* register rtc 0x70 port as coalesced_pio */ +memory_region_set_flush_coalesced(>io); +memory_region_init_io(>coalesced_io, OBJECT(s), _ops, + s, "rtc1", 1); +

Re: [Qemu-devel] [PATCH v3 0/4] hw/misc: Add a MMIO interface to the pvpanicdevice

2018-10-24 Thread peng.hao2
>On 18/10/2018 15:04, Philippe Mathieu-Daudé wrote: >> Hi, this series takes Peng Hao's previous work but rather than adding yet >> another device, simply add the MMIO interface to the current device (which >> only implements the I/O port access). >> >> The first patches are simple cleanups: >> -

Re: [Qemu-devel] [PATCH V4 3/5] hw/misc/pvpanic: Add the MMIO interface

2018-10-25 Thread peng.hao2
>> Signed-off-by: Peng Hao >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> hw/misc/pvpanic.c | 74 >> ++- >> include/hw/misc/pvpanic.h | 2 ++ >> 2 files changed, 62 insertions(+), 14 deletions(-) >> >> diff --git a/hw/misc/pvpanic.c

Re: [Qemu-devel] [PATCH V4 3/5] hw/misc/pvpanic: Add the MMIO interface

2018-11-07 Thread peng.hao2
Hi philmd, Are there any problems with this series of patches "pvpanic: add mmio interface"? The kernel part of this series of patches has been upstream. git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git

Re: [Qemu-devel] [PATCH V6 5/6] hw/arm/virt: add pvpanic device invirt acpi table

2018-11-15 Thread peng.hao2
>> add pvpanic device in virt acpi table, so when kenrel command line uses >> acpi=force, kernel can get info from acpi table in aarch64. [...] >> >> +static void acpi_dsdt_add_pvpanic(Aml *scope, const MemMapEntry >> *pvpanic_memmap) >> +{ >> +Aml *dev = aml_device("PANC"); > >Shouldn't

Re: [Qemu-devel] [PATCH V6 6/6] pvpanic : update pvpanic document

2018-11-15 Thread peng.hao2
> Add mmio support info in docs/specs/pvpanic.txt. >> >> Signed-off-by: Peng Hao >> --- >> docs/specs/pvpanic.txt | 13 - >> 1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt >> index c7bbacc..5d8e9dc 100644 >> ---

Re: [Qemu-devel] [Qemu-arm] [PATCH V7 4/6] hw/arm/virt: Use the pvpanic device

2018-11-15 Thread peng.hao2
>Hi, > >On 2018/11/16 18:50, Peng Hao wrote: >> Add pvpanic device in arm virt machine. [...] >> >> +create_pvpanic_device(vms); >> + >It should not create pvpanic by default. It should be configurable via >-device pvpanic. yeah ,it is a problem. I will resolve it. Thanks. >Thanks, >Shannon

Re: [Qemu-devel] [PATCH V6 5/6] hw/arm/virt: add pvpanic deviceinvirt acpi table

2018-11-16 Thread peng.hao2
>> >> add pvpanic device in virt acpi table, so when kenrel command line uses >> >> acpi=force, kernel can get info from acpi table in aarch64. >> >> [...] >> >> >> >> >> +static void acpi_dsdt_add_pvpanic(Aml *scope, const MemMapEntry >> >> *pvpanic_memmap) >> >> +{ >> >> +Aml *dev =

Re: [Qemu-devel] [PATCH V12 0/5] add pvpanic mmio support

2018-12-11 Thread peng.hao2
>> v11 --> v12 >> realize pvpanic as a pci device and use the mmio of pci device. > >Do you have a pointer to the kernel patches? > >Thanks, >>drew > I'm still sorting out the code for the kernel part, and I haven't submitted a patch yet.

Re: [Qemu-devel] [PATCH V10 7/9] hw/misc/pvpanic: preparing for adding configure interface

2018-12-01 Thread peng.hao2
>On Wed, 28 Nov 2018 at 03:50, Peng Hao wrote: >> >> Prepare for pvpanic-mmio configure interface. >> >> Signed-off-by: Peng Hao >> --- >> hw/arm/sysbus-fdt.c | 2 ++ >> hw/arm/virt.c | 2 ++ >> hw/misc/pvpanic.c | 11 +-- >> 3 files changed, 13 insertions(+), 2 deletions(-) >

Re: [Qemu-devel] [PATCH V10 7/9] hw/misc/pvpanic: preparing foradding configure interface

2018-12-01 Thread peng.hao2
>On Fri, 30 Nov 2018 at 16:14, Andrew Jones wrote: >> >> On Fri, Nov 30, 2018 at 03:57:13PM +, Peter Maydell wrote: >> > On Fri, 30 Nov 2018 at 15:56, Peter Maydell >> > wrote: >> > > I suspect the reason you've done this is that you're >> > > trying to get "-device pvpanic" to work on the

Re: [Qemu-devel] [PATCH V11 0/8] add pvpanic mmio support

2018-12-03 Thread peng.hao2
>On Mon, 3 Dec 2018 at 11:04, Peng Hao wrote: >> >> The first patches are simple cleanups: >> - patch 1 move the pvpanic device with the 'ocmmon objects' so we >> compile >>it once for the x86/arm/aarch64 archs, >> - patch 2 simply renames ISA fields/definitions to

Re: [Qemu-devel] [PATCH V12 0/5] add pvpanic mmio support

2018-12-08 Thread peng.hao2
>v10 --> v11 >change configure interface in virt machine configure parameters. > >v11 --> v12 >realize pvpanic as a pci device and use the mmio of pci device. > >Philippe Mathieu-Daudé (2): >hw/misc/pvpanic: Build the pvpanic device in $(common-obj) >hw/misc/pvpanic: Cosmetic renaming > >Peng Hao

Re: [Qemu-devel] [Qemu-arm] [PATCH V11 0/8] add pvpanic mmio support

2018-12-05 Thread peng.hao2
>On Wed, 5 Dec 2018 at 00:28, wrote: >> >> >I'm afraid I don't understand. If it's a PCI device then >> >it does not need to be listed in the device tree or the >> >ACPI tables at all, because it is probeable by the guest. >> >This also significantly simplifies the changes needed in QEMU. >> > >>

Re: [Qemu-devel] [PATCH V11 0/8] add pvpanic mmio support

2018-12-04 Thread peng.hao2
>On Tue, 4 Dec 2018 at 00:41, wrote: >> >> >I would still prefer to see a more detailed examination of whether >> >we can do this with a PCI device before we commit to taking the >> >MMIO version into the virt board. >> >> I'm sorry I thought I had sent an email. yesterday when I wrote an email

Re: [Qemu-devel] [PATCH 10/10] pvpanic : update pvpanic document

2018-11-24 Thread peng.hao2
I'm sorry to sent patches with unmodified title. Please ignore patch 1-10. I will re-send. >Add mmio support info in docs/specs/pvpanic.txt. > >Signed-off-by: Peng Hao >--- >docs/specs/pvpanic.txt | 18 +++--- >1 file changed, 15 insertions(+), 3 deletions(-) > >diff --git

Re: [Qemu-devel] [PATCH V7 4/6] hw/arm/virt: Use the pvpanic device

2018-11-21 Thread peng.hao2
> > Add pvpanic device in arm virt machine. > > > > Signed-off-by: Peng Hao > > Signed-off-by: Philippe Mathieu-Daudé > > --- > > default-configs/arm-softmmu.mak | 1 + > > hw/arm/virt.c | 21 + > > include/hw/arm/virt.h | 1 + > > 3 files

Re: [Qemu-devel] [PATCH V9 9/9] pvpanic : update pvpanic document

2018-11-26 Thread peng.hao2
>> Add mmio support info in docs/specs/pvpanic.txt. >> >> Signed-off-by: Peng Hao >> --- >> docs/specs/pvpanic.txt | 15 +-- >> 1 file changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt >> index c7bbacc..67f5591 100644 >>

Re: [Qemu-devel] [PATCH] hw/arm/sysbus-fdt: fix assert in matchfunction

2018-11-19 Thread peng.hao2
>Hi Peng, > >On 11/17/18 8:22 PM, Peng Hao wrote: >> In match function it should not call OBJECK_CHECK. When there is >> a mismatch, we should continue to match rather than assert(). > >Normally this issue should have been fixed by >e9ac8e84f0 "hw/arm/sysbus-fdt: Only call match_fn callback if