[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 06/16] vmx: nest: handling VMX instruction exits
On 15/09/2010 10:56, "Dong, Eddie" <eddie.dong@xxxxxxxxx> wrote: >> Fair enough, but I'd like the memory leak fixed too (svmcs and vvmcs >> are only freed if the N1 guest executes VMXOFF). >> > Sure. Fixed it locally at vmx_destroy_vmcs. > > BTW, how do you like CONFIG_VVMCS_MAPPING ? I feel a little bit more > complicated. Ah yes, presumably you will be picking one or the other and getting rid of ifdefs in a future spin of this patchset? I don't personally care whether you map or copy, though the former should be faster I guess? Anyway I think your logic for mapping is too short and simplistic -- look at hvm_map_entry() to see how it uses gfn_to_mfn_unshare (necessary if you will be modifying the page) and handles the various return codes from that. You could even factor out a common helper routine from hvm_map_entry() that you could then use rather than open-coding very similar logic. > And how about rename vvmcs to vmcs12 (VMCS used by L1 VMM for L2 guest), and > rename svmcs as vmcs02 (VMCS used by L0 VMM for L2 guest). > Of course hvmcs becomes vmcs01 then, (VMCS used by L0 VMM for L1 guest). No opinion myself. :-) -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |