qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Gleb Natapov
Subject: Re: [Qemu-devel] [PATCH] kvm: notify host when guest panicked
Date: Tue, 12 Jun 2012 12:49:57 +0300

On Tue, Jun 12, 2012 at 04:26:35PM +0800, Wen Congyang wrote:
> At 06/12/2012 03:49 PM, Christian Borntraeger Wrote:
> >>> We have three solutions to implement this feature:
> >>> 1. use vmcall
> >>> 2. use I/O port
> >>> 3. use virtio-serial.
> >>
> >>> We have decided to avoid touching hypervisor. The reason why I choose
> >>> choose the I/O port is:
> >>> 1. it is easier to implememt
> >>> 2. it does not depend any virtual device
> >>> 3. it can work when startint the kernel
> > 
> > Havent looked deeply into that, butz wouldnt kvm_hypercall0 also fulfill 
> > all of these
> > points? You just have to define the number for each architecture and then 
> > it should be 
> > possible to write a simple panic driver that works on all architectures.
> > 
> >>> --- a/include/linux/kvm_para.h
> >>> +++ b/include/linux/kvm_para.h
> >>> @@ -20,6 +20,14 @@
> >>>  #define KVM_HC_FEATURES                  3
> >>>  #define KVM_HC_PPC_MAP_MAGIC_PAGE        4
> >>>  
> >>> +#define KVM_PV_PORT      (0x505UL)
> >>> +
> > 
> > ignoring the above, shouldnt a port number go into an architecture specific 
> > file?
> 
> I am not sure whether it should be put into an architecture specific file.
> 
Because PIO is x86 thing.

--
                        Gleb.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]