Re: [Qemu-devel] [QUESTION]stuck in SeaBIOS and vm cannot be reset any more

2016-08-11 Thread Xulei (Stone)
> On 11/08/2016 04:13, Xulei (Stone) wrote: > > Following your suggestion, I found this problem may be caused by the > > flag of HF_SMM_MASK. I'm now sure QEMU is sending the KVM_SMI ioctl, > > and kmod already handles this ioctl. > > > > I add printk in inject_pending_event(), like this: > > > > /

Re: [Qemu-devel] [QUESTION]stuck in SeaBIOS and vm cannot be reset any more

2016-08-11 Thread Paolo Bonzini
On 11/08/2016 04:13, Xulei (Stone) wrote: > Following your suggestion, I found this problem may be caused by the flag of > HF_SMM_MASK. I'm now sure QEMU is sending the KVM_SMI ioctl, and > kmod already handles this ioctl. > > I add printk in inject_pending_event(), like this: > > /* try to i

Re: [Qemu-devel] [QUESTION]stuck in SeaBIOS and vm cannot be reset any more

2016-08-10 Thread Xulei (Stone)
> On 09/08/2016 10:04, Xulei (Stone) wrote: > > Following your suggestion, i'm now sure it is caused by missing SMI. > > I have tried adding dprintf() like this: > > > > --- a/roms/seabios/src/fw/smm.c > > +++ b/roms/seabios/src/fw/smm.c > > @@ -65,7 +65,8 @@ handle_smi(u16 cs) > > u8 cmd

Re: [Qemu-devel] [QUESTION]stuck in SeaBIOS and vm cannot be reset any more

2016-08-09 Thread Paolo Bonzini
On 09/08/2016 10:04, Xulei (Stone) wrote: > Following your suggestion, i'm now sure it is caused by missing SMI. > I have tried adding dprintf() like this: > > --- a/roms/seabios/src/fw/smm.c > +++ b/roms/seabios/src/fw/smm.c > @@ -65,7 +65,8 @@ handle_smi(u16 cs) > u8 cmd = inb(PORT_SMI_CM

Re: [Qemu-devel] [QUESTION]stuck in SeaBIOS and vm cannot be reset any more

2016-08-09 Thread Xulei (Stone)
>On Tue, Aug 02, 2016 at 04:18:30AM +, Xulei (Stone) wrote: >> >On Fri, Jul 29, 2016 at 04:04:59AM +, Xulei (Stone) wrote: >> >> After one day, the vm is stuck. Looking from the following seabios >> >> log, it seems seabios stops at "PCI: Using 00:02.0 for primary >> >> VGA", and can not ex