Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 09-26-2011, 06:43 AM   #1
Jaskaran Singh
LQ Newbie
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Inserting break point in guest from qemu using ioctls into kvm

We have written a plugin in qemu to handle display driver calls .If the display driver does something which we feel is bad we want the Guest to trap so that in windbg we can know what has caused this condition.Things we have tried to solve this problem are ::
1)Setting trap flag in eflags using getregs and set regs ioctl .But this did not work .The guest behaves like no trap flag is set and windbg has no effect .
2)Second thing that we tried was :
Using KVM_SET_GUEST_DEBUG ioctl :Arguments
and debug_reg[0] as rip obtained by doing getregs .and similarly debugreg[7] as flags to enable the rip .But this too did not work.The windbg hangs and nothing works .

Can anyone point me to the right direction .KVM we are using is kvm-kmod-devel-88 .Is there anything regarding this that has been updated in the newer versions .
Old 09-26-2011, 07:00 AM   #2
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 467

Rep: Reputation: 67
kvm-kmod-devel-88 is over 2 years old. Since then the userland (qenu-kvm) and kernel code (kvm-kmod) are released separately. You should use the newer packages and see if that helps.
1 members found this post helpful.
Old 09-26-2011, 07:03 AM   #3
Jaskaran Singh
LQ Newbie
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes,but before that I want to know if this is the correct direction and I have explored the possible options with the older kvm .As migrating to newer kvm and qemu would require some work as the patched that I have made for these older versions might break .In short can you tell me if this is the correct direction and what else can be looked at .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
[SOLVED] Qemu-kvm file sharing Linux host Xp guest problems Linux.tar.gz Linux - Virtualization and Cloud 6 11-23-2010 05:57 AM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM
[SOLVED] Qemu kvm : No eth0 inside a Slackware-13.0 guest, although listed in lspci and lsmod Linux.tar.gz Slackware 9 02-08-2010 06:36 PM
Solaris 10 guest endless reboot under KVM/Qemu green_dood Linux - Software 6 12-13-2009 01:20 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration