Re: [Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi

2012-02-08 Thread Hu Tao
On Tue, Jan 31, 2012 at 01:36:04PM +0100, Paolo Bonzini wrote: > On 01/30/2012 10:33 AM, Hu Tao wrote: > >>> I cannot reproduce this with a 100G qcow2 image (created with > >>> "qemu-img create scsi.qcow2 100G" just before launching the host), > >>&

Re: [Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi

2012-02-09 Thread Hu Tao
On Thu, Feb 09, 2012 at 08:13:52AM +0100, Paolo Bonzini wrote: > On 02/09/2012 06:46 AM, Hu Tao wrote: > >>>> >I've re-tested today, with host kernel 2.6.35.6-45.fc14.x86_64, > >>>> >2.6.32-71.el6.x86_64, 3.1.0 and 3.3.0-rc1+, qemu version and

[Qemu-devel] [PATCH v11 2/6] update kernel headers

2012-10-24 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h |1 + linux-headers/linux/kvm_para.h |6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86

[Qemu-devel] [PATCH v11 1/6] start vm after reseting it

2012-10-24 Thread Hu Tao
From: Wen Congyang The guest should run after reseting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when reseting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED to

[Qemu-devel] [PATCH v11 3/6] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-10-24 Thread Hu Tao
From: Wen Congyang The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang --- qapi-schema.json |6 +- qmp.c|3 ++- vl.c |7 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.j

[Qemu-devel] [PATCH v11 5/6] introduce a new qom device to deal with panicked event

2012-10-24 Thread Hu Tao
clude it's code into pv_event.c for such target. Note: if we emit QEVENT_GUEST_PANICKED only, and the management application does not receive this event(the management may not run when the event is emitted), the management won't know the guest is panicked. Signed-off-by: Wen Congyang S

[Qemu-devel] [PATCH v11 4/6] add a new qevent: QEVENT_GUEST_PANICKED

2012-10-24 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c |1 + monitor.h |1 + 2 files changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index d17ae2d..d2e4bbf 100644 --- a/monitor.c +++ b/monitor.c @@ -457,6 +457,7 @@ static const char *

[Qemu-devel] [PATCH v11 6/6] allower the user to disable pv event support

2012-10-24 Thread Hu Tao
From: Wen Congyang Signed-off-by: Wen Congyang --- hw/pc_piix.c|6 +- qemu-config.c |4 qemu-options.hx |3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index fb67dc1..864d356 100644 --- a/hw/pc_piix.c +++ b/hw/pc_pii

[Qemu-devel] [PATCH v11] kvm: notify host when the guest is panicked

2012-10-24 Thread Hu Tao
rtual device 3. it can work when starting the kernel Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- changes from v10: - add a kernel parameter to disable pv-event - detailed documentation to describe pv event interface - make kvm_pv_event_init() local Documentation/virtua

[Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-11 Thread Hu Tao
s supplied - reserve RUN_STATE_GUEST_PANICKED during migration - add doc of enable_pv_event option - disable reboot-on-panic if pv_event is on v11: http://lists.gnu.org/archive/html/qemu-devel/2012-10/msg04361.html Hu Tao (7): save/load cpu runstate update kernel headers add a ne

[Qemu-devel] [PATCH v12 7/8] allower the user to disable pv event support

2012-12-11 Thread Hu Tao
Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/pc_piix.c| 8 +++- qemu-config.c | 4 qemu-options.hx | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 8380702..bf31b96 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c

[Qemu-devel] [PATCH v12 8/8] pv event: add document to describe the usage

2012-12-11 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/pv-event.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 docs/pv-event.txt diff --git a/docs/pv-event.txt b/docs/pv-event.txt new file mode 100644 index 000..ac9e7fa --- /dev/null +++ b/docs/pv-event.txt @@ -0,0 +1,17 @@ +KVM

[Qemu-devel] [PATCH v12 5/8] add a new qevent: QEVENT_GUEST_PANICKED

2012-12-11 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c | 1 + monitor.h | 1 + 2 files changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index 1226501..231785b 100644 --- a/monitor.c +++ b/monitor.c @@ -458,6 +458,7 @@ static const char *monito

[Qemu-devel] [PATCH v12 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-12-11 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- migration.c | 1 + qapi-schema.json | 6 +- qmp.c| 3 ++- vl.c | 11 ++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a

[Qemu-devel] [PATCH] kvm: notify host when the guest is panicked

2012-12-11 Thread Hu Tao
rtual device 3. it can work when starting the kernel Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- arch/ia64/kvm/irq.h | 19 + arch/powerpc/include/asm/kvm_para.h | 18 + arch/s390/include/asm/kvm_para.h| 19 + arch/x86/includ

[Qemu-devel] [PATCH v12 2/8] start vm after resetting it

2012-12-11 Thread Hu Tao
From: Wen Congyang The guest should run after resetting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when resetting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED

[Qemu-devel] [PATCH v12 3/8] update kernel headers

2012-12-11 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h | 1 + linux-headers/linux/kvm_para.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86

[Qemu-devel] [PATCH v12 6/8] introduce a new qom device to deal with panicked event

2012-12-11 Thread Hu Tao
clude it's code into pv_event.c for such target. Note: if we emit QEVENT_GUEST_PANICKED only, and the management application does not receive this event(the management may not run when the event is emitted), the management won't know the guest is panicked. Signed-off-by: Wen Congyang S

[Qemu-devel] [PATCH v12 1/8] save/load cpu runstate

2012-12-11 Thread Hu Tao
Signed-off-by: Hu Tao --- migration.c | 6 +- monitor.c | 5 ++--- savevm.c| 1 + sysemu.h| 2 ++ vl.c| 34 ++ 5 files changed, 40 insertions(+), 8 deletions(-) diff --git a/migration.c b/migration.c index 73ce170..31fa300 100644 --- a

Re: [Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-19 Thread Hu Tao
Hi, Any comments? On Wed, Dec 12, 2012 at 02:13:43PM +0800, Hu Tao wrote: > This series implements a new interface, kvm pv event, to notify host when > some events happen in guest. Right now there is one supported event: guest > panic. > > changes from v11: > > - add a

Re: [Qemu-devel] [PATCH v12 rebased 2/8] start vm after resetting it

2013-02-20 Thread Hu Tao
On Thu, Feb 07, 2013 at 11:50:28PM -0200, Marcelo Tosatti wrote: > On Wed, Jan 23, 2013 at 03:19:23PM +0800, Hu Tao wrote: > > From: Wen Congyang > > > > The guest should run after resetting it, but it does not run if its > > old state is RUN_STATE_INTERNAL_ERROR or RU

Re: [Qemu-devel] [PATCH v12 rebased 1/8] preserve cpu runstate

2013-02-20 Thread Hu Tao
On Thu, Feb 07, 2013 at 11:45:34PM -0200, Marcelo Tosatti wrote: > On Wed, Jan 23, 2013 at 03:19:22PM +0800, Hu Tao wrote: > > This patch enables preservation of cpu runstate during save/load vm. > > So when a vm is restored from snapshot, the cpu runstate is restored, > &

[Qemu-devel] [PATCH] show --disable-gtk and --enable-gtk in the help message

2013-02-24 Thread Hu Tao
Signed-off-by: Hu Tao --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index dcaa67c..46b29dc 100755 --- a/configure +++ b/configure @@ -1052,6 +1052,8 @@ echo " --disable-strip disable stripping binaries" echo " -

[Qemu-devel] [PATCH] qom/object.c: fix a typo in comment

2013-02-25 Thread Hu Tao
Signed-off-by: Hu Tao --- qom/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index 3d638ff..a90b131 100644 --- a/qom/object.c +++ b/qom/object.c @@ -189,7 +189,7 @@ static bool type_is_ancestor(TypeImpl *type, TypeImpl *target_type

[Qemu-devel] [PATCH] qom/object.h: fix comment of ObjectClass

2013-02-27 Thread Hu Tao
It's now not true what the comment says. Signed-off-by: Hu Tao --- include/qom/object.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/qom/object.h b/include/qom/object.h index cf094e7..ccebd90 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -

Re: [Qemu-devel] [PATCH v12 rebased] kvm: notify host when the guest is panicked

2013-02-28 Thread Hu Tao
On Thu, Feb 07, 2013 at 11:39:47PM -0200, Marcelo Tosatti wrote: > Hi, > > On Wed, Jan 23, 2013 at 03:19:21PM +0800, Hu Tao wrote: > > We can know the guest is panicked when the guest runs on xen. > > But we do not have such feature on kvm. > > > > Another purpo

[Qemu-devel] [PATCH v13 5/8] add a new qevent: QEVENT_GUEST_PANICKED

2013-02-28 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- include/monitor/monitor.h | 1 + monitor.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index 87fb49c..4006905 100644 --- a/include

[Qemu-devel] [PATCH v13] kvm: notify host when the guest is panicked

2013-02-28 Thread Hu Tao
rtual device 3. it can work when starting the kernel Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- arch/x86/include/asm/kvm_para.h | 26 + arch/x86/include/uapi/asm/kvm_para.h | 2 ++ arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/kvm.c

[Qemu-devel] [PATCH v13 3/8] update kernel headers

2013-02-28 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h | 1 + linux-headers/linux/kvm_para.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86

[Qemu-devel] [PATCH v13 1/8] save/load cpu runstate

2013-02-28 Thread Hu Tao
: running Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 2 ++ migration.c | 6 +- monitor.c | 5 ++--- savevm.c| 1 + vl.c| 34 ++ 5 files changed, 40 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH v13 2/8] start vm after resetting it

2013-02-28 Thread Hu Tao
From: Wen Congyang The guest should run after resetting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when resetting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED

[Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest

2013-02-28 Thread Hu Tao
quring the status of vm in destination host when migration completes. v12: http://lists.nongnu.org/archive/html/qemu-devel/2013-01/msg04120.html changes from v12: - no DO_UPCASE - the interface is only for x86 now - request 4 bytes io range(hw/kvm_pv_event.c) - rebase to the latest tree Hu

[Qemu-devel] [PATCH v13 8/8] pv event: add document to describe the usage

2013-02-28 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/pv-event.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 docs/pv-event.txt diff --git a/docs/pv-event.txt b/docs/pv-event.txt new file mode 100644 index 000..ac9e7fa --- /dev/null +++ b/docs/pv-event.txt @@ -0,0 +1,17 @@ +KVM

[Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-02-28 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- migration.c | 1 + qapi-schema.json | 6 +- qmp.c| 3 ++- vl.c | 11 ++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a

[Qemu-devel] [PATCH v13 7/8] allower the user to disable pv event support

2013-02-28 Thread Hu Tao
Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/pc_piix.c| 9 - qemu-options.hx | 3 ++- vl.c| 4 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 24a9bf3..82a421a 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c

[Qemu-devel] [PATCH v13 6/8] introduce a new qom device to deal with panicked event

2013-02-28 Thread Hu Tao
clude it's code into pv_event.c for such target. Note: if we emit QEVENT_GUEST_PANICKED only, and the management application does not receive this event(the management may not run when the event is emitted), the management won't know the guest is panicked. Signed-off-by: Wen Congyang S

Re: [Qemu-devel] [PATCH v13 1/8] save/load cpu runstate

2013-02-28 Thread Hu Tao
On Thu, Feb 28, 2013 at 02:12:37PM -0700, Eric Blake wrote: > On 02/28/2013 05:13 AM, Hu Tao wrote: > > This patch enables preservation of cpu runstate during save/load vm. > > So when a vm is restored from snapshot, the cpu runstate is restored, > > too. > > What

Re: [Qemu-devel] [PATCH v13 1/8] save/load cpu runstate

2013-03-04 Thread Hu Tao
On Mon, Mar 04, 2013 at 10:30:48AM +0100, Paolo Bonzini wrote: > Il 28/02/2013 13:13, Hu Tao ha scritto: > > This patch enables preservation of cpu runstate during save/load vm. > > So when a vm is restored from snapshot, the cpu runstate is restored, > > too. > > I

Re: [Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-03-04 Thread Hu Tao
On Mon, Mar 04, 2013 at 10:40:15AM +0100, Paolo Bonzini wrote: > Il 28/02/2013 13:13, Hu Tao ha scritto: > > The guest will be in this state when it is panicked. > > > > Signed-off-by: Wen Congyang > > Signed-off-by: Hu Tao > > --- > > migration.c

Re: [Qemu-devel] [PATCH v13 5/8] add a new qevent: QEVENT_GUEST_PANICKED

2013-03-04 Thread Hu Tao
On Fri, Mar 01, 2013 at 09:31:47AM -0700, Eric Blake wrote: > On 02/28/2013 05:13 AM, Hu Tao wrote: > > This event will be emited when the guest is panicked. > > > > Signed-off-by: Wen Congyang > > --- > > include/monitor/monitor.h | 1 + > > monitor.c

Re: [Qemu-devel] [PATCH v13 2/8] start vm after resetting it

2013-03-04 Thread Hu Tao
On Thu, Feb 28, 2013 at 02:23:42PM +0100, Jan Kiszka wrote: > On 2013-02-28 13:13, Hu Tao wrote: > > From: Wen Congyang > > > > The guest should run after resetting it, but it does not run if its > > old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. > &

Re: [Qemu-devel] [PATCH v13 2/8] start vm after resetting it

2013-03-04 Thread Hu Tao
On Mon, Mar 04, 2013 at 10:32:17AM +0100, Paolo Bonzini wrote: > Il 28/02/2013 13:13, Hu Tao ha scritto: > > From: Wen Congyang > > > > The guest should run after resetting it, but it does not run if its > > old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PA

Re: [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest

2013-03-06 Thread Hu Tao
On Sun, Mar 03, 2013 at 11:17:38AM +0200, Gleb Natapov wrote: > On Thu, Feb 28, 2013 at 08:13:10PM +0800, Hu Tao wrote: > > This series implements a new interface, kvm pv event, to notify host when > > some events happen in guest. Right now there is one supported event:

Re: [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest

2013-03-06 Thread Hu Tao
Hi, On Mon, Mar 04, 2013 at 11:05:37AM +0100, Paolo Bonzini wrote: > Il 03/03/2013 10:17, Gleb Natapov ha scritto: > > On Thu, Feb 28, 2013 at 08:13:10PM +0800, Hu Tao wrote: > >> This series implements a new interface, kvm pv event, to notify host when > >> some events

Re: [Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-03-06 Thread Hu Tao
On Tue, Mar 05, 2013 at 09:26:18AM +0100, Paolo Bonzini wrote: > Il 05/03/2013 04:17, Hu Tao ha scritto: > > Will > > > > if (runstate_check(RUN_STATE_INTERNAL_ERROR) || > > runstate_check(RUN_STATE_SHUTDOWN) || > > runsta

[Qemu-devel] [PATCH] hw/baum.c: fix build error about baum.h

2013-03-09 Thread Hu Tao
commit 08744c98115cfa144ed3493556024e400b2e2573 removes baum.h, but baum.c still includes it. Remove it from baum.c. Signed-off-by: Hu Tao --- hw/baum.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/baum.c b/hw/baum.c index d75b150..d8919d5 100644 --- a/hw/baum.c

[Qemu-devel] [PATCH v14 1/4] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-03-14 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 1 + qapi-schema.json| 5 - qmp.c | 3 +-- vl.c| 13 +++-- 4 files changed, 17 insertions(+), 5

[Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Hu Tao
qmp event QEVENT_GUEST_PANICKED. TODO: make the IO port configurable Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/Makefile.objs | 2 + hw/pvevent.c | 116 +++ 2 files changed, 118 insertions(+) create mode 100644 hw

[Qemu-devel] [PATCH v14 0/4] pvevent device to deal with guest panic event

2013-03-14 Thread Hu Tao
o runstate save/load(will be a seperate patch) (Paolo) - support q35 (Gleb) - doc about qmp event (Eric) - doc about pvevent device (Paolo) v13: http://lists.nongnu.org/archive/html/qemu-devel/2013-02/msg05361.html Hu Tao (4): add a new runstate: RUN_STATE_GUEST_PANICKED add a

[Qemu-devel] [PATCH v14 2/4] add a new qevent: QEVENT_GUEST_PANICKED

2013-03-14 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff --git a/QMP/qmp-events.txt b

[Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/pvevent.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/pvevent.txt diff --git a/docs/pvevent.txt b/docs/pvevent.txt new file mode 100644 index 000..749b87c --- /dev/null +++ b/docs/pvevent.txt @@ -0,0 +1,16 @@ +PVEVENT

[Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Hu Tao
pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao --- src/acpi-dsdt-isa.dsl | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/acpi-dsdt

[Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-14 Thread Hu Tao
pvevent device is a qemu simulated device through which guest panic event is sent to host. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao --- drivers/platform/x86/Kconfig | 7 +++ drivers/platform/x86/Makefile | 2 + drivers/platform/x86

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:57:18AM +0200, Gleb Natapov wrote: > On Thu, Mar 14, 2013 at 04:48:47PM +0800, Hu Tao wrote: > > pvevent device is used to notify host(qemu) when guest panic > > happens. > > > > ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/ms

Re: [Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 09:45:30AM +0100, Paolo Bonzini wrote: > Il 14/03/2013 09:15, Hu Tao ha scritto: > > Signed-off-by: Hu Tao > > --- > > docs/pvevent.txt | 16 > > 1 file changed, 16 insertions(+) > > create mode 100644 docs/pveve

Re: [Qemu-devel] [PATCH v14 0/4] pvevent device to deal with guest panic event

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:58:45AM +0200, Gleb Natapov wrote: > On Thu, Mar 14, 2013 at 04:15:49PM +0800, Hu Tao wrote: > > This series introduces a new simulated device, pvevent, to notify > > qemu when guest panic event happens. > > > Call it something less generic. pvpanic for instance. OK.

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: > Il 14/03/2013 09:15, Hu Tao ha scritto: > > pvevent device is used to send guest panic event from guest to qemu. > > > > When guest panic happens, pvevent device driver will write a event > > number to IO

[Qemu-devel] [PATCH] memory: fix a bug of detection of memory region collision

2013-03-14 Thread Hu Tao
/f800 (pci-hole) Signed-off-by: Hu Tao --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory.c b/memory.c index 92a2196..75ca281 100644 --- a/memory.c +++ b/memory.c @@ -1321,7 +1321,7 @@ static void memory_region_add_subregion_common(MemoryRegion *mr

[Qemu-devel] [RFC][PATCH] save/load cpu runstate

2013-03-15 Thread Hu Tao
ing it for other comments. Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 2 ++ migration.c | 6 +- monitor.c | 5 ++--- savevm.c| 1 + vl.c| 34 ++ 5 files changed, 40 insertions(+), 8

Re: [Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-18 Thread Hu Tao
On Sun, Mar 17, 2013 at 07:12:09PM +, Blue Swirl wrote: > On Thu, Mar 14, 2013 at 8:51 AM, Hu Tao wrote: > > pvevent device is a qemu simulated device through which guest panic > > event is sent to host. > > > > ref: http://lists.nongnu.org/archive/html/qemu-

Re: [Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-18 Thread Hu Tao
On Fri, Mar 15, 2013 at 07:35:12PM +, Matthew Garrett wrote: > On Thu, 2013-03-14 at 16:51 +0800, Hu Tao wrote: > > > + { "MSFT0001", 0}, > > This seems wrong, and it looks like qemu agrees. Can you resubmit when > there's agreement on the name? My fa

[Qemu-devel] [PATCH] q35: fix GPE method for cpu hotplug

2013-08-21 Thread Hu Tao
cpu hotplug uses bit 2 of GPE instead of bit 1. Signed-off-by: Hu Tao --- src/q35-acpi-dsdt.dsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/q35-acpi-dsdt.dsl b/src/q35-acpi-dsdt.dsl index c031d83..417ac48 100644 --- a/src/q35-acpi-dsdt.dsl +++ b/src/q35-acpi

[Qemu-devel] [PATCH 1/2] ich9: update sci on gpe write

2013-08-21 Thread Hu Tao
OSPM may disable the sci by clearing GPEx_BLK EN bit, in the case we have to set sci level to 0 or guest will receive sci interrupts endlessly. Signed-off-by: Hu Tao --- hw/acpi/ich9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 3fb443d..8717c15

[Qemu-devel] [PATCH 2/2] q35: add cpu hotplug support

2013-08-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/acpi/ich9.c | 91 -- include/hw/acpi/ich9.h | 11 ++ 2 files changed, 100 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 8717c15..146216a 100644 --- a/hw/acpi/ich9.c +++ b

Re: [Qemu-devel] [PATCH 2/2] q35: add cpu hotplug support

2013-08-21 Thread Hu Tao
Added: Igor Mammedov On Wed, Aug 21, 2013 at 05:04:28PM +0800, Hu Tao wrote: > > Signed-off-by: Hu Tao > --- > hw/acpi/ich9.c | 91 > -- > include/hw/acpi/ich9.h | 11 ++ > 2 files changed, 100 insertions(+), 2

Re: [Qemu-devel] [PATCH for-1.6 V2 0/2] pvpanic: Separate pvpanic from machine type

2013-08-21 Thread Hu Tao
On Wed, Aug 21, 2013 at 12:42:37PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 21, 2013 at 10:18:23AM +0200, Paolo Bonzini wrote: > > Il 21/08/2013 10:03, Marcel Apfelbaum ha scritto: > > > On Wed, 2013-08-14 at 10:02 +0300, Ronen Hod wrote: > > >> How about adding a flag that tells QEMU whether

[Qemu-devel] [PATCH] exec: check offset_within_address_space for register subpage

2013-08-29 Thread Hu Tao
If offset_within_address_space falls in a page, then we register a subpage. So check offset_within_address_space rather than offset_within_region. Cc: Paolo Bonzini Cc: Richard Henderson Cc: "Andreas Färber" Cc: Peter Maydell Cc: Blue Swirl Signed-off-by: Hu Tao --- exec.c | 2

Re: [Qemu-devel] [PATCH v15 0/5] qcow2, raw: add preallocation=full and preallocation=falloc

2014-09-16 Thread Hu Tao
On Tue, Sep 16, 2014 at 12:19:58PM +0200, Kevin Wolf wrote: > Am 16.09.2014 um 12:10 hat Hu Tao geschrieben: > > ping... > > Sorry, forgot to send the mail when I merged it. This is in master now. Thank you very much! Regards, Hu > > Kevin > > > On Fri, Sep 12

Re: [Qemu-devel] [PATCH 1/2] pc-dimm: No numa option shouldn't break hotplug memory feature

2014-09-17 Thread Hu Tao
On Tue, Sep 16, 2014 at 06:39:15PM +0800, zhanghailiang wrote: > If we do not configure numa option, memory hotplug should work as well. > It should not depend on numa option. > > Steps to reproduce: > (1) Start VM: qemu-kvm -m 1024,slots=4,maxmem=8G > (2) Hotplug memory > It will fail and reports

Re: [Qemu-devel] [PATCH 1/2] pc-dimm: No numa option shouldn't break hotplug memory feature

2014-09-17 Thread Hu Tao
On Wed, Sep 17, 2014 at 02:19:05PM +0400, Andrey Korolyov wrote: > On Wed, Sep 17, 2014 at 2:00 PM, Tang Chen wrote: > > Add Andrey Korolyov > > > > On 09/17/2014 04:32 PM, Hu Tao wrote: > >> > >> On Tue, Sep 16, 2014 at 06:39:15PM +0800, zhanghailiang wr

Re: [Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread Hu Tao
On Tue, Sep 23, 2014 at 11:30:26AM +0300, Michael S. Tsirkin wrote: > On Tue, Sep 23, 2014 at 03:57:47PM +0800, zhanghailiang wrote: > > If we configure mlock=on and memory policy=bind at the same time, > > It will consume lots of time for system to treat with memory, > > especially when call mbind

[Qemu-devel] [PATCH] exec: don't exit if failed to preallocate memory for memory-backend-file

2014-09-26 Thread Hu Tao
continues running. Signed-off-by: Hu Tao --- exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 759055d..eed5da2 100644 --- a/exec.c +++ b/exec.c @@ -1163,9 +1163,9 @@ static void *file_ram_alloc(RAMBlock *block, return area; error: -if

[Qemu-devel] [PATCH] Fix failure to create q35 machine

2013-04-09 Thread Hu Tao
This is a regression introduced by c0907c9e6417c. -M q35 to reproduce the problem. Signed-off-by: Hu Tao --- default-configs/i386-softmmu.mak | 2 +- default-configs/x86_64-softmmu.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default-configs/i386-softmmu.mak b

[Qemu-devel] [PATCH v18 0/7] Add pvpanic device to deal with guest panic event

2013-04-09 Thread Hu Tao
aeger (1): Wire up disabled wait a panicked event on s390 Hu Tao (6): add a new runstate: RUN_STATE_GUEST_PANICKED add a new qevent: QEVENT_GUEST_PANICKED introduce a new qom device to deal with panicked event pvpanic: pass configurable ioport to seabios pvpanic: add document of pv

[Qemu-devel] [PATCH v18 2/7] add a new qevent: QEVENT_GUEST_PANICKED

2013-04-09 Thread Hu Tao
This event will be emited when qemu detects guest panic. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff --git a/QMP/qmp-events.txt b

[Qemu-devel] [PATCH v18 7/7] Wire up disabled wait a panicked event on s390

2013-04-09 Thread Hu Tao
From: Christian Borntraeger On s390 the disabled wait state indicates a state of attention. For example Linux uses that state after a panic. Lets put the system into panicked state. An alternative implementation would be to state disabled-wait instead of pause in the action field. (e.g. z/OS, z

[Qemu-devel] [PATCH v18 3/7] introduce a new qom device to deal with panicked event

2013-04-09 Thread Hu Tao
qmp event QEVENT_GUEST_PANICKED. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/misc/Makefile.objs | 2 + hw/misc/pvpanic.c | 116 ++ 2 files changed, 118 insertions(+) create mode 100644 hw/misc/pvpanic.c diff --git a/hw/misc

[Qemu-devel] [PATCH v18 5/7] pvpanic: add document of pvpanic

2013-04-09 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/specs/pvpanic.txt | 37 + 1 file changed, 37 insertions(+) create mode 100644 docs/specs/pvpanic.txt diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt new file mode 100644 index 000..d72d667 --- /dev/null +++ b

[Qemu-devel] [PATCH v18 4/7] pvpanic: pass configurable ioport to seabios

2013-04-09 Thread Hu Tao
This lets seabios patch the corresponding SSDT entry. Signed-off-by: Hu Tao --- hw/misc/pvpanic.c | 14 ++ hw/nvram/fw_cfg.c | 8 +++- include/hw/nvram/fw_cfg.h | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/misc/pvpanic.c b/hw/misc

[Qemu-devel] [PATCH v18 6/7] pvpanic: create pvpanic by default for machine 1.5

2013-04-09 Thread Hu Tao
Signed-off-by: Paolo Bonzini Signed-off-by: Hu Tao --- hw/i386/pc_piix.c| 16 ++-- hw/i386/pc_q35.c | 15 ++- hw/misc/pvpanic.c| 7 +++ include/hw/i386/pc.h | 3 +++ 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw

[Qemu-devel] [PATCH v18 1/7] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-04-09 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 1 + qapi-schema.json| 5 - qmp.c | 3 +-- vl.c| 13 +++-- 4 files changed, 17 insertions(+), 5

Re: [Qemu-devel] [SeaBIOS] [PATCH v16] Add pvpanic device driver

2013-04-09 Thread Hu Tao
t; > need this new fw_cfg file obviously. Paolo thinks this is not feasible, > > I haven't followed this work to close to have informed opinion. > > I was hoping I'd get a chance to submit some QEMU patches for this > before the soft-freeze, but unfortunately I have no

Re: [Qemu-devel] [PATCH] Fix failure to create q35 machine

2013-04-10 Thread Hu Tao
On Wed, Apr 10, 2013 at 10:10:06AM +0200, Markus Armbruster wrote: > Hu Tao writes: > > > This is a regression introduced by c0907c9e6417c. -M q35 > > to reproduce the problem. > > Including a complete reproducer in the commit message would be a bit > nicer. Here&#x

[Qemu-devel] [PATCH v2] Fix failure to create q35 machine

2013-04-10 Thread Hu Tao
This is a regression introduced by c0907c9e6417c. How to reproduce: $ qemu-system-x86_64 -nodefaults -vnc :0 -M q35 qemu-system-x86_64: Unknown device 'q35-pcihost' for default sysbus Aborted (core dumped) Tested-by: Markus Armbruster Signed-off-by: Hu Tao --- default-configs/i386-s

Re: [Qemu-devel] [PATCH v18 3/7] introduce a new qom device to deal with panicked event

2013-04-10 Thread Hu Tao
Hi, On Wed, Apr 10, 2013 at 01:54:04PM +0200, Markus Armbruster wrote: > Hu Tao writes: > > > pvpanic device is used to send guest panic event from guest to qemu. > > > > When guest panic happens, pvpanic device driver will write a event > > number to IO port 0x505

Re: [Qemu-devel] [PATCH v18 3/7] introduce a new qom device to deal with panicked event

2013-04-14 Thread Hu Tao
Hi, Sorry for the delay. On Thu, Apr 11, 2013 at 10:52:02AM +0200, Markus Armbruster wrote: > Hu Tao writes: > > > Hi, > > > > On Wed, Apr 10, 2013 at 01:54:04PM +0200, Markus Armbruster wrote: > >> Hu Tao writes: > >> > >> > pvpanic

[Qemu-devel] [PATCH v19 0/7] Add pvpanic device to deal with guest panic event

2013-04-17 Thread Hu Tao
ioport/custom ioport Changes from v18: - ignore un-implemented bits Christian Borntraeger (1): Wire up disabled wait a panicked event on s390 Hu Tao (6): add a new runstate: RUN_STATE_GUEST_PANICKED add a new qevent: QEVENT_GUEST_PANICKED introduce a new qom device to deal with

[Qemu-devel] [PATCH v19 3/7] introduce a new qom device to deal with panicked event

2013-04-17 Thread Hu Tao
qmp event QEVENT_GUEST_PANICKED. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/misc/Makefile.objs | 2 + hw/misc/pvpanic.c | 123 ++ 2 files changed, 125 insertions(+) create mode 100644 hw/misc/pvpanic.c diff --git a/hw/misc

[Qemu-devel] [PATCH v19 1/7] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-04-17 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 1 + qapi-schema.json| 5 - qmp.c | 3 +-- vl.c| 13 +++-- 4 files changed, 17 insertions(+), 5

[Qemu-devel] [PATCH v19 7/7] Wire up disabled wait a panicked event on s390

2013-04-17 Thread Hu Tao
From: Christian Borntraeger On s390 the disabled wait state indicates a state of attention. For example Linux uses that state after a panic. Lets put the system into panicked state. An alternative implementation would be to state disabled-wait instead of pause in the action field. (e.g. z/OS, z

[Qemu-devel] [PATCH v19 5/7] pvpanic: add document of pvpanic

2013-04-17 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/specs/pvpanic.txt | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 docs/specs/pvpanic.txt diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt new file mode 100644 index 000..c7bbacc --- /dev/null +++ b

[Qemu-devel] [PATCH v19 2/7] add a new qevent: QEVENT_GUEST_PANICKED

2013-04-17 Thread Hu Tao
This event will be emited when qemu detects guest panic. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff --git a/QMP/qmp-events.txt b

[Qemu-devel] [PATCH v19 4/7] pvpanic: pass configurable ioport to seabios

2013-04-17 Thread Hu Tao
This lets seabios patch the corresponding SSDT entry. Signed-off-by: Hu Tao --- hw/misc/pvpanic.c | 14 ++ hw/nvram/fw_cfg.c | 8 +++- include/hw/nvram/fw_cfg.h | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/misc/pvpanic.c b/hw/misc

[Qemu-devel] [PATCH v19 6/7] pvpanic: create pvpanic by default for machine 1.5

2013-04-17 Thread Hu Tao
Signed-off-by: Paolo Bonzini Signed-off-by: Hu Tao --- hw/i386/pc_piix.c| 16 ++-- hw/i386/pc_q35.c | 15 ++- hw/misc/pvpanic.c| 7 +++ include/hw/i386/pc.h | 3 +++ 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw

Re: [Qemu-devel] [PATCH v19 4/7] pvpanic: pass configurable ioport to seabios

2013-04-19 Thread Hu Tao
On Thu, Apr 18, 2013 at 11:22:56AM +0200, Markus Armbruster wrote: > Hu Tao writes: > > > This lets seabios patch the corresponding SSDT entry. > > > > Signed-off-by: Hu Tao > > --- > > hw/misc/pvpanic.c | 14 ++ > > hw/nvram/fw_c

[Qemu-devel] [PATCH v20 2/7] add a new qevent: QEVENT_GUEST_PANICKED

2013-04-19 Thread Hu Tao
This event will be emited when qemu detects guest panic. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff --git a/QMP/qmp-events.txt b

[Qemu-devel] [PATCH v20 1/7] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-04-19 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- include/sysemu/sysemu.h | 1 + qapi-schema.json| 5 - qmp.c | 3 +-- vl.c| 13 +++-- 4 files changed, 17 insertions(+), 5

[Qemu-devel] [PATCH v20 4/7] pvpanic: pass configurable ioport to seabios

2013-04-19 Thread Hu Tao
This lets seabios patch the corresponding SSDT entry. Signed-off-by: Hu Tao --- hw/misc/pvpanic.c | 14 ++ hw/nvram/fw_cfg.c | 8 +++- include/hw/nvram/fw_cfg.h | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/misc/pvpanic.c b/hw/misc

[Qemu-devel] [PATCH v20 5/7] pvpanic: add document of pvpanic

2013-04-19 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/specs/pvpanic.txt | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 docs/specs/pvpanic.txt diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt new file mode 100644 index 000..c7bbacc --- /dev/null +++ b

[Qemu-devel] [PATCH v20 3/7] introduce a new qom device to deal with panicked event

2013-04-19 Thread Hu Tao
qmp event QEVENT_GUEST_PANICKED. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 + hw/misc/pvpanic.c | 123

  1   2   3   4   5   6   7   8   9   10   >