<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You'll have to be more specific which part of the code you're in,
    assuming you have a PVMCPU pointer, you can use:<br>
    <br>
    PVM pVM = pVCpu->CTX_SUFF(pVM);<br>
    <br>
    Which will get you the correct pVM pointer based on which context
    you are in (R0, R3 or RC).<br>
    <br>
    Regards,<br>
    Ram.<br>
    <br>
    <div class="moz-cite-prefix">On 05/22/2014 05:14 PM, Johannes DeWitt
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEpgmJeDPTWQG=HwvA4=NkDebbRFCS8gG8bxmKOXFt+xU0STNw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi, in the source code, everywhere PVM pVM is used to read
          values of the current VM.<br>
          If i'm in a part of source code without an existent pointer to
          VM, how can i get it?<br>
        </div>
        Is there something like: PVM pVM = getCurrentPVM(); ?<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>