|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v2 06/11] vmx: add help functions to support PML
On 04/16/2015 11:42 PM, Jan Beulich wrote: On 15.04.15 at 09:03, <kai.huang@xxxxxxxxxxxxxxx> wrote: Hmm. My bad. I'll use v->domain in both function.
Yes an ASSERT would be better.v->pause_count will be increased if vcpu is kicked out by domain_pause explicitly, but looks the same thing won't be done if vcpu is kicked out by PML buffer full VMEXIT. So should the ASSERT be done like below? ASSERT(atomic_read(&v->pause_count) || (v == current));
Will do. + /* + * Need to change type from log-dirty to normal memory for logged GFN. + * hap_track_dirty_vram depends on it to work. And we really only need + * to mark GFNs which hve been successfully changed from log-dirty to + * normal memory to be dirty. + */ + if ( !p2m_change_type_one(v->domain, gfn, p2m_ram_logdirty, + p2m_ram_rw) )Indentation. To be where exactly? Sorry I didn't find an example to refer in such case. + paging_mark_gfn_dirty(v->domain, gfn); + } + + unmap_domain_page(pml_buf); + + /* Reset PML index */ + __vmwrite(GUEST_PML_INDEX, NR_PML_ENTRIES - 1); + +out:Labels indented by at least one space please. OK. I'll put one space before the "out:" label. Thanks, -Kai Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |