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

2012-07-22 Thread Wen Congyang
At 07/23/2012 04:19 AM, Sasha Levin Wrote: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inl

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

2012-07-22 Thread Sasha Levin
On 07/23/2012 12:29 AM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/22/2012 10:19 PM, Sasha Levin wrote: >>> On 07/22/2012 09:22 PM, Anthony Liguori wrote: Sasha Levin writes: > On 07/21/2012 09:12 AM, Wen Congyang wrote: >> +#define KVM_PV_PORT (0x505UL) >>

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

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/22/2012 10:19 PM, Sasha Levin wrote: >> On 07/22/2012 09:22 PM, Anthony Liguori wrote: >>> Sasha Levin writes: >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: > +#define KVM_PV_PORT (0x505UL) > + > #ifdef __KERNEL__ > #include >

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

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inline void kvm_disable

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

2012-07-22 Thread Sasha Levin
On 07/22/2012 10:19 PM, Sasha Levin wrote: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inl

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

2012-07-22 Thread Sasha Levin
On 07/22/2012 09:22 PM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/21/2012 09:12 AM, Wen Congyang wrote: >>> +#define KVM_PV_PORT(0x505UL) >>> + >>> #ifdef __KERNEL__ >>> #include >>> >>> @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) >>> } >>> #e

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

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/21/2012 09:12 AM, Wen Congyang wrote: >> +#define KVM_PV_PORT (0x505UL) >> + >> #ifdef __KERNEL__ >> #include >> >> @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) >> } >> #endif >> >> +static inline unsigned int kvm_arch_pv_features(void)

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

2012-07-21 Thread Sasha Levin
On 07/21/2012 09:12 AM, Wen Congyang wrote: > +#define KVM_PV_PORT (0x505UL) > + > #ifdef __KERNEL__ > #include > > @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) > } > #endif > > +static inline unsigned int kvm_arch_pv_features(void) > +{ > + return inl(KVM_PV_P

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

2012-07-21 Thread Wen Congyang
At 07/21/2012 03:19 PM, Jan Kiszka Wrote: > On 2012-07-21 09:12, Wen Congyang wrote: >> We can know the guest is panicked when the guest runs on xen. >> But we do not have such feature on kvm. >> >> Another purpose of this feature is: management app(for example: >> libvirt) can do auto dump when th

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

2012-07-21 Thread Jan Kiszka
On 2012-07-21 09:12, Wen Congyang wrote: > We can know the guest is panicked when the guest runs on xen. > But we do not have such feature on kvm. > > Another purpose of this feature is: management app(for example: > libvirt) can do auto dump when the guest is panicked. If management > app does no

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

2012-07-21 Thread Wen Congyang
We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not do auto dump, the guest's user can do dump by hand