public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Map VM's memory?
@ 2006-11-28 13:53 Jun Koi
       [not found] ` <fdaac4d50611280553x3a0dfcadyd32d17898ad561b4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jun Koi @ 2006-11-28 13:53 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

Could anybody tell me how to map memory of VMs in KVM (mapping done
from hypervisor)?
I am reading the source, but still cannot figure it out.

Another question: can KVM provide strong isolation between VMs? That
means if there is a security bug in a VM kernel, can it affect other
VMs? (It seems not to me, could anybody confirm this?)

Thanks,
Jun

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Map VM's memory?
       [not found] ` <fdaac4d50611280553x3a0dfcadyd32d17898ad561b4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2006-11-28 14:07   ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2006-11-28 14:07 UTC (permalink / raw)
  To: Jun Koi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Jun Koi wrote:
> Hi,
>
> Could anybody tell me how to map memory of VMs in KVM (mapping done
> from hypervisor)?
> I am reading the source, but still cannot figure it out.
>
>   

In the kernel, see struct kvm->memslots[x].phys_mem[y].  You need to 
kmap()/kunmap() it before use.

In userspace, just mmap() /dev/kvm, the file offset is the physical 
memory address.


> Another question: can KVM provide strong isolation between VMs? That
> means if there is a security bug in a VM kernel, can it affect other
> VMs? (It seems not to me, could anybody confirm this?)
>
>   

Barring any bugs, kvm fully isolates guests.  Guest kernel activity 
(malicious or erronous) should not affect other guests except through 
defined interfaces (e.g. networking).

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-28 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-28 13:53 Map VM's memory? Jun Koi
     [not found] ` <fdaac4d50611280553x3a0dfcadyd32d17898ad561b4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-28 14:07   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox