Re: [PATCH] kvm tools: Add 'kvm memstat' command

2011-08-18 Thread Neo Jia
On Tue, Aug 16, 2011 at 01:01:34PM +0800, Asias He wrote: > On 08/15/2011 08:06 PM, Pekka Enberg wrote: > > On 8/15/11 3:02 PM, Sasha Levin wrote: > >> On Mon, 2011-08-15 at 14:56 +0300, Pekka Enberg wrote: > >>> On 8/15/11 2:53 PM, Sasha Levin wrote: > This patch adds 'kvm memstat' command th

Re: [KVM]:could anyone give me some instruction for KVM pci driver? Thanks

2011-08-18 Thread Neo Jia
On Wed, Aug 17, 2011 at 04:48:52PM +0800, liu pf wrote: > Hi guys, > > After objdump the driver, I found that the access to the pci-memmap > register was optimized by GCC, and no code was generated. > And the EPT in 2.6.39 is fine. Are you registering a callback function for the register range yo

Windows guest debugging on KVM/Qemu

2010-05-24 Thread Neo Jia
hi, I am using KVM/Qemu to debug my Windows guest according to KVM wiki page (http://www.linux-kvm.org/page/WindowsGuestDrivers/GuestDebugging). It works for me and also I can only use one Windows guest and bind its serial port to a TCP port and run "Virtual Serial Ports Emulator" on my Windows de

Re: 32-bit qemu + 64-bit kvm be a problem?

2010-06-01 Thread Neo Jia
On Wed, Mar 10, 2010 at 2:12 PM, Michael Tokarev wrote: > Neo Jia wrote: >> hi, >> >> I have to keep a 32-bit qmeu user space to work with some legacy >> library I have but still want to use 64-bit host Linux to explore >> 64-bit advantage. >> >> So I

32-bit qemu + 64-bit kvm be a problem?

2010-03-10 Thread Neo Jia
hi, I have to keep a 32-bit qmeu user space to work with some legacy library I have but still want to use 64-bit host Linux to explore 64-bit advantage. So I am wondering if I can use a 32-bit qemu + 64-bit kvm-kmod configuration. Will there be any limitation or drawback for this configuration? I

guest kernel debugging through serial port

2010-03-11 Thread Neo Jia
hi, I have followed the windows guest debugging procedure from http://www.linux-kvm.org/page/WindowsGuestDrivers/GuestDebugging. And it works when I start two guests and bind tcp port to guest serial port, but it is really slow. And if I use -serial /dev/ttyS1 for the guest debugging target, I ca

Re: >2 serial ports?

2010-03-17 Thread Neo Jia
May I ask if it is possible to bind a real physical serial port to a guest? Thanks, Neo On Wed, Mar 17, 2010 at 1:38 AM, Michael Tokarev wrote: > Since 0.12, it appears that kvm does not allow more than > 2 serial ports for a guest: > > $ kvm \ >  -serial unix:s1,server,nowait \ >  -serial unix:

Re: >2 serial ports?

2010-03-17 Thread Neo Jia
On Wed, Mar 17, 2010 at 3:35 AM, Michael Tokarev wrote: > Neo Jia wrote: >> May I ask if it is possible to bind a real physical serial port to a guest? > > It is all described in the documentation, quite a long list of > various things you can attach to a virtual serial port,

Re: guest kernel debugging through serial port

2010-03-17 Thread Neo Jia
Here is what I have asked before. The problem that I want to assign a real serial port to the guest is that the debugging through network becomes really slow. Thanks, Neo On Thu, Mar 11, 2010 at 2:44 AM, Neo Jia wrote: > hi, > > I have followed the windows guest debugging procedure fr

How to debug problems when nothing shows up in kvm_stat on kvm-88?

2010-03-30 Thread Neo Jia
hi, I am running official kvm-88 release with my own 32-bit .so library dlopen'ed by qemu-kvm. So it has 32-bit qemu-kvm on 64-bit kvm kernel module. Everything works great but after a while the guest (winxp 32-bit) hard hangs and kvm_stat shows 0. So, is there any way to trace back when the kvm_

Re: how to debug unhandled vm exit: 0x11?

2010-09-28 Thread Neo Jia
On Tue, Jul 27, 2010 at 3:04 AM, Avi Kivity wrote: >  On 07/26/2010 08:58 PM, ewheeler wrote: >>> >>> O >>> n 07/26/2010 07:01 PM, Neo Jia wrote: >>>> >>>> hi, >>>> >>>> I am seeing an unhandled vm exit: 0x11 on Win7 w

Re: how to debug unhandled vm exit: 0x11?

2010-09-28 Thread Neo Jia
On Tue, Sep 28, 2010 at 11:40 AM, Neo Jia wrote: > On Tue, Jul 27, 2010 at 3:04 AM, Avi Kivity wrote: >>  On 07/26/2010 08:58 PM, ewheeler wrote: >>>> >>>> O >>>> n 07/26/2010 07:01 PM, Neo Jia wrote: >>>>> >>>>> hi, >

Re: how to debug unhandled vm exit: 0x11?

2010-09-30 Thread Neo Jia
On Wed, Sep 29, 2010 at 1:38 AM, Avi Kivity wrote: >  On 09/28/2010 08:40 PM, Neo Jia wrote: >> >> I found the instruction that caused this problem: >> >> emulation failed (failure) rip 71f14651 66 0f 7f 07 >> >> And according to Intel, this is a MOVDQA. So,

Re: how to debug unhandled vm exit: 0x11?

2010-10-10 Thread Neo Jia
On Fri, Oct 1, 2010 at 7:29 AM, Avi Kivity wrote: >  On 10/01/2010 08:16 AM, Neo Jia wrote: >> >> On Wed, Sep 29, 2010 at 1:38 AM, Avi Kivity  wrote: >> >    On 09/28/2010 08:40 PM, Neo Jia wrote: >> >> >> >>  I found the instruction that ca

Re: how to debug unhandled vm exit: 0x11?

2010-10-10 Thread Neo Jia
On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivity wrote: >  On 10/11/2010 07:46 AM, Neo Jia wrote: >> >> BTW, I have a question about saving FPU, especially those XMM >> registers. I don't see an explicit save FPU after exiting guest due to >> an exception (MMIO writes)

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Neo Jia
On Mon, Oct 11, 2010 at 7:27 AM, Avi Kivity wrote: >  On 10/11/2010 08:49 AM, Neo Jia wrote: >> >> On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivity  wrote: >> >    On 10/11/2010 07:46 AM, Neo Jia wrote: >> >> >> >>  BTW, I have a question about savi

how to debug unhandled vm exit: 0x11?

2010-07-26 Thread Neo Jia
hi, I am seeing an unhandled vm exit: 0x11 on Win7 with KVM-88 release and wondering if I am still able to dump the code from guest OS when this happens. But it looks that all instructions are 0s after adding one more print code after dumping the guest registers. And it is very likely that this p

Porting KVM to Mac OS?

2009-01-25 Thread Neo Jia
hi, I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already? If it is possible, which KVM release should I use as a start? Thanks, Neo -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! -

Re: Porting KVM to Mac OS?

2009-02-16 Thread Neo Jia
On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori wrote: > Alexander Graf wrote: >> >> Hi, >> >> On 25.01.2009, at 09:16, Neo Jia wrote: >> >>> hi, >>> >>> I am thinking if it is possible to port KVM to Mac OS (leopard). Is >>>

With -vnc option, can I still use "ctrl+alt + n"?

2009-02-18 Thread Neo Jia
hi, I am trying kvm-84 and with -vnc option I can't use "ctrl + alt + n" key to get the qemu system console. Is there anyway to make this work? Thanks, Neo -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! -- To unsubscribe from th

Re: With -vnc option, can I still use "ctrl+alt + n"?

2009-02-19 Thread Neo Jia
On Wed, Feb 18, 2009 at 11:38 PM, Tomasz Chmielewski wrote: > Neo Jia schrieb: >> >> hi, >> >> I am trying kvm-84 and with -vnc option I can't use "ctrl + alt + n" >> key to get the qemu system console. Is there anyway to make this work? >

Re: With -vnc option, can I still use "ctrl+alt + n"?

2009-02-19 Thread Neo Jia
On Thu, Feb 19, 2009 at 12:22 AM, Alexander Graf wrote: > > On 19.02.2009, at 09:11, Neo Jia wrote: > >> On Wed, Feb 18, 2009 at 11:38 PM, Tomasz Chmielewski >> wrote: >>> >>> Neo Jia schrieb: >>>> >>>> hi, >>>> >>

qemu "info registers" doesn't match the one I saw from kgdb?

2009-02-19 Thread Neo Jia
hi, I am seeing something different between "info registers" from qemu monitor window vs. kgdb. This is a 32-bit Linux guest running on KVM-84. When I just break into the guest kernel with kgdb, I tried the follwoing commands: (qemu) info registers EAX=00010060 EBX=c0471e3c ECX= EDX=