At 10:35 +0800 on 27 Mar (1427452553), Kai Huang wrote:
> --- a/xen/arch/x86/mm/paging.c
> +++ b/xen/arch/x86/mm/paging.c
> @@ -411,7 +411,18 @@ static int paging_log_dirty_op(struct domain *d,
> int i4, i3, i2;
>
> if ( !resuming )
> +{
> domain_pause(d);
> +
> +/*
This patch adds several new callbacks in paging/hap/p2m layer to support PML.
At paging layer, a new callback is added to log_dirty_domain to flush hardware
cached dirty pages to log-dirty radix tree, as in case of PML, it's possible
there are dirty GPAs logged in vcpus' PML buffers when userspace