|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 08/10] VMX: disable PML in vmx_vcpu_destroy
On 04/09/2015 08:04 PM, Tim Deegan wrote: At 10:35 +0800 on 27 Mar (1427452552), Kai Huang wrote:It's possible domain still remains in log-dirty mode when it is about to be destroyed, in which case we should manually disable PML for it. Signed-off-by: Kai Huang <kai.huang@xxxxxxxxxxxxxxx> --- xen/arch/x86/hvm/vmx/vmx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index fce3aa2..75ac44b 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -153,6 +153,15 @@ static int vmx_vcpu_initialise(struct vcpu *v)static void vmx_vcpu_destroy(struct vcpu *v)
Do you mean something like below?
bool_t vmx_vcpu_enable_pml(struct vcpu *v)
{
if ( vmx_vcpu_pml_enabled(v) )
return success;
...... /* code to enable */
return success;
error:
...
return failure;
}
This should be also fine. I will do this. But I think
vmx_{vcpu|domain}_disable_pml should remain return value of void.
Thanks, -Kai Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |