All of lore.kernel.org
 help / color / mirror / Atom feed
* DomU LDT emtpy
@ 2011-07-01 12:58 david
  2011-07-01 17:15 ` david
  0 siblings, 1 reply; 2+ messages in thread
From: david @ 2011-07-01 12:58 UTC (permalink / raw)
  To: xen-devel

Hi there,

short question: should ldt_base in struct vcpu_guest_context_t contain
the value of the LDTR of the current running process in DomU? It's
always zero :(

I'm trying to get the value by using libxc:
vcpu_guest_context_any_t *ctxt = malloc(sizeof(vcpu_guest_context_any_t));
xc_vcpu_getcontext(xcinterface, domain, 0, ctxt);
ctxt->c.ldt_base;


have you any idea how I can get the LDTR value from DomU in Dom0 by
using libxc?

thanks,
david

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

* Re: DomU LDT emtpy
  2011-07-01 12:58 DomU LDT emtpy david
@ 2011-07-01 17:15 ` david
  0 siblings, 0 replies; 2+ messages in thread
From: david @ 2011-07-01 17:15 UTC (permalink / raw)
  To: xen-devel

Ok, i think I know what the problem is: LDT is 0 :) (winxp sp2). I have
no idea why, but windbg shows me that there is just a 0 stored.

... how can the OS know the details about the segments of the running
process? .. but I think is is the wrong mailinglist for such a question.

cya,
david




On 07/01/2011 02:58 PM, david wrote:
> Hi there,
> 
> short question: should ldt_base in struct vcpu_guest_context_t contain
> the value of the LDTR of the current running process in DomU? It's
> always zero :(
> 
> I'm trying to get the value by using libxc:
> vcpu_guest_context_any_t *ctxt = malloc(sizeof(vcpu_guest_context_any_t));
> xc_vcpu_getcontext(xcinterface, domain, 0, ctxt);
> ctxt->c.ldt_base;
> 
> 
> have you any idea how I can get the LDTR value from DomU in Dom0 by
> using libxc?
> 
> thanks,
> david
> 
> 
> 
> 
> 
> 

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

end of thread, other threads:[~2011-07-01 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 12:58 DomU LDT emtpy david
2011-07-01 17:15 ` david

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.