[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/3] x86/Viridian: ExProcessorMasks handling improvements
- To: Andrew Cooper <amc96@xxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 19 Nov 2021 08:57:37 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=AhC+gXUL7sP9vCz+tuCYMC5rpJ53h+BYaZEXZfZCEAs=; b=f4VRPFmTQHWN9vH3AIOm4sh8KqSJs/vIKL3Z880DnmdKDjRtmBxDjinG/i35okPq7xkETyXTFjAuZ84u0sRN6lyGQpfQV9hGDH1i5R+bbCPhN18P1poCXWJWiH6YUKTJUfoM9TXXE7MWedxd7e2hQlAVhT7sJSZFPzuKVHWYpNU8LD9ElgZK9hdMbQ/UIrQ3OMfRRQl8LM0Y5CBmvLrgGghQEAVJR/We5AewyZfty4yUqn0wep4Nuzn160wOi3K6DPJJuFjL8f+/Z7dDhTplLYQla8DrVtK8IrIQ+apwSh7W9JEpMvaUy9srB7NM6n4uwCF90VgRkzHMbgWU7BwP7A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bgt80h/Eu0gbTXE5sztabtISH+cFILhqBywcYOJpYSuHCOi9v6/Y+rmRnuxrni+usz5D3B8SIEh/yS28B7RH9RLxC9RQx3X1edkhTdoZts9n4zxndr2//pDyDjjOXfiPE+n8A27G4nIWGpkvlTFfBU9FC8wbnhZjOUqo6niwondInONO0YwVFUoma67pq3MtKQg8zAG22pIQuc5jIvuAddMeI6Uw+Edsq1DH49QpKoGCCWBCcH1nm1Cfpeij4CX+P2HgwJT9xxQHTEetgofjANYwPk2eebAFiDEwQ9LsOBzbWkMSlKvQ1C3H/N1U3jk0py2vkY0qix7euQ5RxKwAfw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Paul Durrant <paul@xxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Fri, 19 Nov 2021 07:58:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 18.11.2021 19:05, Andrew Cooper wrote:
> On 18/11/2021 13:34, Jan Beulich wrote:
>> On 18.11.2021 14:20, Andrew Cooper wrote:
>>> On 18/11/2021 13:12, Jan Beulich wrote:
>>>> I've noticed the bugs fixed in patch 1 only while doing the other cleanup.
>>>>
>>>> 1: fix error code use
>>>> 2: drop dead variable updates
>>>> 3: fold duplicate vpset retrieval code
>>> Oh, nice. This makes it rather easier to do the flush short-circuit for
>>> HV_GENERIC_SET_ALL.
>> To be honest I first thought it might, but now I'm not sure anymore.
>
> Just this delta:
>
> diff --git a/xen/arch/x86/hvm/viridian/viridian.c
> b/xen/arch/x86/hvm/viridian/viridian.c
> index 658e68f7f2bb..c8c05bfb04a1 100644
> --- a/xen/arch/x86/hvm/viridian/viridian.c
> +++ b/xen/arch/x86/hvm/viridian/viridian.c
> @@ -771,7 +771,8 @@ static int hvcall_flush_ex(const union
> hypercall_input *input,
> sizeof(input_params)) != HVMTRANS_okay )
> return -EINVAL;
>
> - if ( input_params.flags & HV_FLUSH_ALL_PROCESSORS )
> + if ( input_params.flags & HV_FLUSH_ALL_PROCESSORS ||
> + input_params.set.format == HV_GENERIC_SET_ALL )
> vcpu_bitmap = NULL;
> else
> {
>
> which now I come to think of it independent of your cleanup, and small
> enough to be folded into my main IPI change.
FTAOD please keep my R-b there with this addition.
Jan
|