* Pekka Enberg <penberg@xxxxxxxxxx> wrote: > In preparation for threaded execution model, this patch introduces a KVM VCPU > data structure 'struct kvm_cpu'. > > Cc: Asias He <asias.hejun@xxxxxxxxx> > Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxx> > Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> > --- > tools/kvm/Makefile | 1 + > tools/kvm/cpuid.c | 6 +- > tools/kvm/include/kvm/kvm-cpu.h | 33 ++++ > tools/kvm/include/kvm/kvm.h | 16 -- > tools/kvm/ioport.c | 2 + > tools/kvm/kvm-cpu.c | 370 +++++++++++++++++++++++++++++++++++++++ > tools/kvm/kvm-run.c | 62 ++++--- > tools/kvm/kvm.c | 338 ----------------------------------- > 8 files changed, 445 insertions(+), 383 deletions(-) > create mode 100644 tools/kvm/include/kvm/kvm-cpu.h > create mode 100644 tools/kvm/kvm-cpu.c This commit causes a segfault for 'kvm run bzImage': (gdb) set args run bzImage (gdb) run Starting program: /home/mingo/tip/tools/kvm/kvm run bzImage [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x0000000000405054 in setup_bios (kvm=0x68a010) at bios.c:106 106 memset(p, 0, BDA_END - BDA_START); Missing separate debuginfos, use: debuginfo-install glibc-2.13-1.x86_64 (gdb) bt #0 0x0000000000405054 in setup_bios (kvm=0x68a010) at bios.c:106 #1 0x0000000000404ef5 in kvm_cmd_run (argc=<value optimized out>, argv=<value optimized out>, prefix=<value optimized out>) at kvm-run.c:160 #2 0x00000000004038cf in handle_kvm_command (argc=<value optimized out>, argv=<value optimized out>) at main.c:16 #3 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:21 (gdb) q A debugging session is active. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html