LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-29-2010, 05:08 AM   #1
raghu2383
LQ Newbie
 
Registered: Jun 2008
Posts: 20

Rep: Reputation: 0
Read guest virtual memory in KVM


I am new to KVM. I need to write a KVM ioctl that on being called from host userland, takes a specified virtual address in guest OS, reads a number of bytes at the guest Virtual address, and returns the contents to the host userland application.
I understand that I will have to write some user app which can ioctl into /dev/kvm (which is probably tricky anyway to start).

The main issue for me right now is, how to read contents at guest virtual address. Lets say the hose userland application has knowledge only about virtual addresses. I see kvm_main.c has a function kvm_read_guest which uses guest physical address. Should I use this function and convert all my virtual addresses to Physical before issuing the read? Or is there any better function to read virtual memory directly?

Thanks in advance for the reply.
 
  


Reply

Tags
kvm


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
Assign IP to Guest VM in KVM vzxen Linux - Virtualization and Cloud 9 09-28-2010 05:14 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 05:20 AM
KVM Guest Crashes after 1 to 3 days Sander88 Linux - Virtualization and Cloud 5 03-18-2010 11:23 AM
KVM Hypervisor and Guest OS setup? Help! sheepy Linux - Server 3 10-15-2009 09:45 PM
XP Guest on Xen switch to KVM marinl Linux - Software 1 06-15-2009 12:25 PM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
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