<div>Hi All,</div>
<div>&nbsp;</div>
<div>The comments for the file /drivers/lguest/lguest.c mentions:</div>
<div>&nbsp;</div>
<div>&quot;One way would be to put the &quot;irq_enabled&quot; field in a page by itself, and have the&nbsp;Host write-protect it when an interrupt comes in when irqs are disabled.<br>&nbsp;There will then be a page fault as soon as interrupts are re-enabled. &quot;
</div>
<div>&nbsp;</div>
<div>I want to do something similar, nothing related to interrupts ,but I would like to:</div>
<div>&nbsp;</div>
<div>1. Store some data (variable or constant) in a host protected or hypervisor protected memory area, maybe in a page by itself.</div>
<div>&nbsp;</div>
<div>2. If the guest needs the value of this variable, it must make a hypercall and the host must return the value. For this I would like to add a new hypercall.</div>
<div>&nbsp;&nbsp;&nbsp; Basically, I don&#39;t want the guest getting direct access to that variable, i.e. it should not&nbsp;be stored in the guest&#39;s memory address space.</div>
<div>&nbsp;</div>
<div>I am still new to lguest. It would be great if you could let me know if the above steps can be achieved by modifying lguest and the directions for the same.</div>
<div>&nbsp;</div>
<div>Thanks and Regards,</div>
<div>Sujit</div>