[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tools/xen-foreign: Update the size for vcpu_guest_{core_regs, context}


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 6 Jul 2021 17:10:13 +0200
  • 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-SenderADCheck; bh=vMTxia+wYFkk0gt7axk38Mr1H+q4GPh0gEg8vPu5r/8=; b=hdto3jhsGi94ef4dNK/Y0CHyaiEg/vbABvF5YgBooW1wP7KQdKiPQhjxe2UK/wCP5aFEKXV0XY1RODwbvblbS9T54vAXW6rHCSqBqhTYzv1eIjjd1k9CAN7H2amj4ZG9dOn2UF+hjoXy4ue+xrXCQkNhXZrOIJDcA6ocssUhinZfkDHZTsA+tvg27iwYwUekQqUHc2t68rxTcGc1/MNlO+RGvQ8BZ43dNO51eHKdrgLpK64ooHY/Vvc31Toxzx1eioJlpPaotrQJ3r+cfMHqaQ08C47j6z1lmFHFGk2ql7RrME9PqNEnJdsHI5c33ksMKaalJFZ7Jkca1VqgV+VN/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YxEHuCZNMQY3nBmKqRCCb1n3/NfLO6cDdLffqCIMc6ftbTtRUKSc0ldj16P9zsKTxI7s9T18yGa0lpEmukghSmvUKR+YDbP+aMVPH1Czg/KZC4yY4F4rguqNv8znNw+NAZxY/NG19Iz4tUjqEkOH5zkEKnEomogY2WsqbWtc2yVzbVpxMVTqCBsw0BMGE7hpvJU27GW5YKn/zRSzNoI83Emnf9pDvdYjtpnSLfCE1kiOj78iWTZLPcs+H1zNCnV4sSZUjI9tbSO+sZjqwYJ/RprBXpf6XSbq6x42E7OUXmPGOWMwpGQEHH9sn2foZiPegE8xd3CtjZaBaA0J3NI/QQ==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: Julien Grall <jgrall@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, michal.orzel@xxxxxxx, olaf@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 06 Jul 2021 15:10:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 06.07.2021 16:24, Julien Grall wrote:
> On 06/07/2021 15:07, Jan Beulich wrote:
>> On 06.07.2021 15:20, Julien Grall wrote:
>>> From: Julien Grall <jgrall@xxxxxxxxxx>
>>>
>>> Commit 918b8842a852 ("arm64: Change type of hsr, cpsr, spsr_el1 to
>>> uint64_t") updated the size of the structure vcpu_guest_core_regs and
>>> indirectly vcpu_guest_context.
>>>
>>> On Arm, the two structures are only accessible to the tools and the
>>> hypervisor (and therefore stable). However, they are still checked
>>
>> I suppose s/stable/not stable/ and ...
>>
>>> by the scripts in tools/include/xen-foreign are not able to understand
>>> that.
>>>
>>> Ideally we should rework the scripts so we don't have to update
>>> the size for non-stable structure. But I don't have limited time
>>
>> ... s/don't/only/ ?
> 
> Yes I will update.
> 
>>
>>> to spend on the issue. So chose the simple solution and update
>>> the size accordingly.
>>>
>>> Note that we need to keep vcpu_guest_core_regs around because
>>> the structure is used by vcpu_guest_context and therefore the
>>> scripts expects the generated header to contain it.
>>
>> If vcpu_guest_context is also tools-only, why does it need keeping
>> (for Arm)? IOW can't you drop vcpu_guest_core_regs from the scripts
>> altogether, and mark vcpu_guest_context with valid sizes for x86
>> only?
> I have tried to use "-" in place of the size but the checker is still 
> not happy. I didn't find another way without modifying the script...
> 
> I don't know the script and I don't have a lot of time to work on the 
> bug fix. So this is not something I could do this week.
> 
> So this leave us to the following options:
>    1) Someone volunteer to fix the script
>    2) Revert the patch that broke the build
>    3) Accept this patch
> 
> I would prefer 3) so we have more time to work on making the script a 
> lot smarter.

Well, if we have no-one who knows the script, and the simple thing
of removing the one obvious line doesn't help, then I agree we want
to go with 3) for now, even if it looks odd to adjust number for
something that's not supposed to be checked in the first place. Of
course I also wouldn't mind 2), as it seems pretty clear that the
patch was insufficiently build-tested.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.