LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2011, 06:26 PM   #1
raghu2383
LQ Newbie
 
Registered: Jun 2008
Posts: 20

Rep: Reputation: 0
qemu compile issues


I am trying to add some code to qemu source for my school work. I want to be able to read some area of guest memory into the host user land. I looked at functions copy_from_user which exists in ~/linux-user/uaccess.c I tried to call this function from ~/qemu-kvm.c. I get numerous compile errors even after including #include "linux-user/qemu.h". The compiler cannot find any of the header files that get included from qemu.h when the make command is issued one directory up.
I also tried to use 'g2h()' macro present in ~/cpu-all.h. I figured since they are in the same directory, if I just #include "cpu-all.h" in qemu-kvm.c it should work, but even that gives a compile error of undefined symbol 'g2h'.

After more experimentation I found that the make does not compile the files in the directory qemu_src/linux-user. i know this as I placed an obvious compile error in qemu_src/linux-user/qemu.h, the make clean; make does not spot any issue.

So what is the trick to compiling functions in linux-user directory? Are my config options wrong?

All I need is that at any point of time the host should be able to take a memory dump of the guest's memory. Which seems like a very logical functionality that I should be able to implement. Its all virtual memory of the host qemu process.

If there is a functionality which allows the host to obtain memory of the guest at any time without doing this, then I will appreciate pointers.

Thanks

Last edited by raghu2383; 01-25-11 at 03:11 AM. Reason: did more experimentation

I hope you don't mind, I am adding this by mod edit to keep the thread on the 0-reply list.

1st, unfortunately the is not an area of my expertise, so I have no on-point help to offer. -- Sorry.

2nd, Smart move editing in the new info. -- it kept this on the 0-reply list.

3rd, my actual question: What, however fruitless, searches have you done to see if someone else has already done this?

Last edited by archtoad6; 01-30-2011 at 09:03 AM. Reason: add question w/o bumping from 0-reply
 
  


Reply

Tags
qemu


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot compile qemu - cannot find zlib smeezekitty Linux - Newbie 14 11-20-2010 08:19 AM
Error when cross-compile libvpx 0.9.1 for ARM - Contex A9 on QEMU hero132 Linux - Distributions 0 08-27-2010 09:23 AM
KVM + qemu + virt-manager issues cyanide_will Linux - Software 4 04-15-2008 01:43 AM
qemu slackware 11/WinXP pcmcia issues cwwilson721 Slackware 2 04-06-2007 07:27 PM
bridging, tun/tap, qemu issues kc8tbe Linux - Networking 10 03-19-2007 01:47 PM


All times are GMT -5. The time now is 06:49 PM.

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