xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Page table updates
@ 2011-05-30  7:52 Lakshitha Harshan
  2011-05-31  9:47 ` Tim Deegan
  0 siblings, 1 reply; 2+ messages in thread
From: Lakshitha Harshan @ 2011-05-30  7:52 UTC (permalink / raw)
  To: xen-devel

Hi,

Is there a way to update the guest memory segment which points to
kernel code segment of a guest from dom0?

For example if i am running two Squeeze VMs (1,2) and if I want to
change the mappings which points kernel_ code segment of second VM to
kernel code segment of first VM, is there a way to alter memory
addresses from dom0?

Thanks,
Harshan

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

* Re: Page table updates
  2011-05-30  7:52 Page table updates Lakshitha Harshan
@ 2011-05-31  9:47 ` Tim Deegan
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2011-05-31  9:47 UTC (permalink / raw)
  To: Lakshitha Harshan; +Cc: xen-devel

Hi, 

At 13:22 +0530 on 30 May (1306761721), Lakshitha Harshan wrote:
> Is there a way to update the guest memory segment which points to
> kernel code segment of a guest from dom0?

You can change the guest's segment register contents using the
get/set_vcpucontext calls, but I suspect that's not what you want. 

> For example if i am running two Squeeze VMs (1,2) and if I want to
> change the mappings which points kernel_ code segment of second VM to
> kernel code segment of first VM, is there a way to alter memory
> addresses from dom0?

I don't think so - segmentation only turns virtual adresses into linear
addresses, and all the linear addresses in a given process are the same
regardless of what segment you accessed them through.  So to cause CS:
accesses to see different memory from DS: accesses I think you'd need to
emulate every instruction.

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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

end of thread, other threads:[~2011-05-31  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30  7:52 Page table updates Lakshitha Harshan
2011-05-31  9:47 ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).