>>> On 20.01.17 at 20:41, <andrew.coop...@citrix.com> wrote:
> On 19/01/17 17:29, Roger Pau Monne wrote:
>> +    tss = map_domain_gfn(p2m_get_hostp2m(d), _gfn(PFN_DOWN(gaddr)),
>> +                         &mfn, &p2mt, 0, &rc);
>> +    if ( tss == NULL )
>> +    {
>> +        printk("Unable to map VM86 TSS area\n");
>> +        return 0;
>> +    }
>> +
>> +    memset(tss, 0, HVM_VM86_TSS_SIZE);
> 
> Do we actually need to 0 this?  Don't we guarantee to hand out zero'd
> pages during construction?  (I can't actually recall.  Perhaps it is
> better to explicitly clear it.)

No, we don't zero before handing out, we zero after a reclaiming
memory from a dying guest or from the hypervisor.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to