[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/PoD: defer nested P2M flushes
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Tue, 19 Oct 2021 12:39:03 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EFL4823SNII+1gV4BV56gIJj/Nh4nt3/c1MGH8Press=; b=HMzB4jOJZKb/oJ7ER7nzwgfee+YM4vKhk8+IuS372/GazgvGvT+lwBwAkj2Cff3fEXVevTlXiiZ/CeS8EMu36Jtbn1oUAnTdbg8SJutkZjzlTr5NaWumgkQSsblwst8Ux3wHaEEsfOaDEN2n0gVMy450skzecXa2F4XsJz2dtV1gGshT+WU/gtbO1dZINm6/0wFHlbV4KEsCV2Y+n4GIY1YWydb4PSNZ93+vgkdj6kQk5JFmJFNuSDR6c3XmcE01tLIKfw2/vFcdECUt7bIzoe9i9vjH7WCqfAIOL6SE9s0hob7se6h5h+YVUlNqqXZ3yzbWPMcYcQubDFH+vttg4Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHyzbpIRaQ2G7OED3Q1ye5vJTdqYjDIwjQwQ1HG/QP+am/vclBvS56i0fiz3tQNG7JvsqmDhAtdxNfxg2DN+CDsMc9r7jbkbqeyAMjXR3haB8sZg/LZEabMtm2iNU3+8PpQLE7ghtSTGlF1qzfSNIZJxy74a8ZW75JPGn+2984kvWQUqgND7eHwE2l9IgqXigv6dIjCpNn8VrEtjqly4V8EVGZsCusgbyaCHf2Mhj5Qv69zSPjvHZZNSfCYobWGgzS60X8YIthXUEJsAAColLNmUHeesdsMQwFWT7N0nBsJWzUY8bM6FY8TSn7YKPnoUmffQQzRQ+8JNnZPIoJ4/jg==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
- Delivery-date: Tue, 19 Oct 2021 10:39:57 +0000
- Ironport-data: A9a23:ww52Z6OHVGJ4NHjvrR1xkMFynXyQoLVcMsEvi/4bfWQNrUp002cGy TRJWT/QP6nYZDSheIoibIm/pE8Hv5GDz9FrTAto+SlhQUwRpJueD7x1DKtR0wB+jCHnZBg6h ynLQoCYdKjYdpJYz/uUGuCJQUNUjMlkfZKhTr6ZUsxNbVU8En540Usyw7RRbrNA2rBVPSvc4 bsenOWHULOV82Yc3rU8sv/rRLtH5ZweiRtA1rAMTakjUGz2zhH5OKk3N6CpR0YUd6EPdgKMq 0Qv+5nilo/R109F5tpICd8XeGVSKlLZFVDmZna7x8FOK/WNz8A/+v9TCRYSVatYo2XXjo96x oUVj7PucwMYBqrjut8+FAYNRkmSPYUekFPGCX22sMjVxEzaaXr8hf5pCSnaP6VBpLwxWzsXs 6VFdnZdNXhvhMrvqF6/YvNrick5atHiIasUu216zCGfBvEjKXzGa/iVuYYGjWpq7ixINcTUf ZIkW2Q0VSrBOT5XHH41VMoMl+j90xETdBUH8QnI9MLb+VP73AF3lbTgLtfRUtiLXtlO2FaVo Hrc+Gb0CQ1cM8aQoRKH+H+xgu7EnQvgRZkfUra/85ZXbEa7nzJJTkdMDB3i/Kf/2hXWt89jx 1I8qnQ/8qM8pBSRYYfHWyyAp1GmhT1bRI8FewEl0z2lxq3R6gefI2ELSD9dddAr3PMLqSwWO k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gYzxLrWJ9dOME/f Snl616T23KQwVoUi33PAhIY8Hz4/nw0L72ax8PABAqrCGIkDOT8bb/VzyVxA0XXT9jyaortT GtqX222oyT99WAjjPM3W7a6Jpb3PPn19t4HcSJzuwYMC/lhAqEbJloH5eCoDc2iuey70tCqq iCnz4Qe+BIr1/BdGC8phXgnyHmzTYV8nfnjWSVhHPyyPaJDw4SOo5kv8Z0YxHZ400vsJVXy6 RQxV+UsJJREFfpgDn9z8KgbWAoqmOE5V4Z1cIDhX1WVoUTLJVLq5YEwU9TGJAcWArn9YEcFv V0Bs203ocXTbqjVQGdgoBT+q3pYpxqdS32BXTq+/blkgS+pUoJjXfxn6ck7zE9HJFUcegN2w 2LCNUwqFniJvVmGp6VP91xNPdfPFa9CC4kAFjiU2gPK5t3T04li6SHqondt9vaNaDh8vMJ6e L8uRVjxDYPR34=
- Ironport-sdr: 3EBZJGLoi4qLlV6fXcwGF4edLmLbk6gznL00ZqNUTTUNFp4n7c+hv95NZifF2fmiFZMOK+omVQ 3YGWsRLGTaikmg3FIdtZz6BsH34vy1SLlkUSrHuO7UELqg7W9yMbW291VJlTkC5la9OZbPip8h HTrE9/SOHm7rmYIA4Hjy/sZFrzjGre9EXo4xKNmsVMx4WFMNfqsbCojO4XWL+265opm6DjtVMh EKqvwh6fNuoihcZXHIgwqEGylp4cZTQcZiWfHWTkFGs+DuWb7dPd6VBxbFReis5P6BXm4ipRlY vD3AYcUPDwuYgJdA14W6oZK5
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Oct 19, 2021 at 10:19:57AM +0200, Jan Beulich wrote:
> On 19.10.2021 10:17, Jan Beulich wrote:
> > On 19.10.2021 10:09, Roger Pau Monné wrote:
> >> On Mon, Oct 11, 2021 at 10:17:08AM +0200, Jan Beulich wrote:
> >>> @@ -1229,8 +1242,9 @@ p2m_pod_demand_populate(struct p2m_domai
> >>> __trace_var(TRC_MEM_POD_POPULATE, 0, sizeof(t), &t);
> >>> }
> >>>
> >>> - pod_unlock(p2m);
> >>> + pod_unlock_and_flush(p2m);
> >>> return true;
> >>> +
> >>> out_of_memory:
> >>> pod_unlock(p2m);
> >>
> >> Don't you need to set defer_nested_flush = false in the out_of_memory
> >> label? (as you don't call pod_unlock_and_flush that would do it)
> >
> > Yes of course - thanks for spotting. I had pod_unlock_and_flush() here
> > too initially, and when switching back I forgot to convert rather than
> > just delete that.
>
> Oh, wait, that was on purpose: There's no point clearing the flag
> when the next thing we do is invoke domain_crash(). If it wasn't
> that way, I don't think I could avoid using pod_unlock_and_flush()
> here as well.
Oh, I see. We would need to be careful if that domain crash is ever
removed.
Thanks, Roger.
|