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

Re: [Xen-devel] [PATCH] x86: move vgc_flags to struct pv_vcpu


  • To: Julien Grall <julien.grall@xxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Fri, 27 Dec 2019 12:14:54 +0000
  • Accept-language: en-US
  • 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=E9YVw8MXD8Vh2W0JjFyCM5m537qzwAoozQ/Ba6qMQKg=; b=RAgqAjapet8a05sS9L2rc4B7RakmWRnCR6oTBGoaeZ1fE/d4XzX3UoQ14UW/AVhjmtNvRERvr2HEltIn0LmTAHAtXl2RIxH70NIwMIHy7FwcYPlqDqx8YUGf2ozGW8OkSd7/GqASCAU6MBU64qelpwx8jg3gczYqP7hQFOcu9oOaLiSzsFRPupsup8AgOIilKjzxRdkYVX4PV1Z4DJ2KR6ch8Ae/IuLy5kaBtdDnIvQJuqxAS0T++sk1KHgZN+Mraa+VII8ckTbXGlriHA4YJb4t306DGoHb0tvsqqpZKvkD2iinWimcwso1HQKV9AnzVSZVBUvHx3JApBuOw9TXUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HVBxAN4vRRm+RG1/dXNfN+CLpYluJgbPnMHQKQfRDeCG3NNdvAwsZ+OlvFOA07tEhSV+rtZB6FQmJmvN2iOV7vkX3dmeR6HStPYUFBzhnYXmMDYPWTJ5KS9IxX+1g/9mKM0FRLdIUGZLpcGAkG/6XwF/u8KZSr2lm+LuZzwQLfUh8eWmMfT0twN6tsyxmtzArpTmA8TcEuETuTUUsYf3PE1Ut49bi2fweiDpFupZpsZqldBsQC50fvD4hb+12WEGIHqj+gm+HtJqvxWuQ5ZeLJPVj07tQBSTZl6SZhQ+1LM1UJ16K2ddypltfmgdLQLjWO9QxdXVDyNGIxCRWWVbsw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 27 Dec 2019 12:21:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVtz0W7fLZmjjTFESLDQs6+XYow6fH/5KAgAWuTICAADUHgIAADUOA
  • Thread-topic: [Xen-devel] [PATCH] x86: move vgc_flags to struct pv_vcpu

On 27.12.2019 12:27, Julien Grall wrote:
> Hi Jan,
> 
> On Fri, 27 Dec 2019, 09:22 Jan Beulich, <JBeulich@xxxxxxxx> wrote:
> 
>> On 23.12.2019 18:33, Julien Grall wrote:
>>> Hi Jan,
>>>
>>> On 20/12/2019 14:55, Jan Beulich wrote:
>>>> There's been effectively no use of the field for HVM.
>>>>
>>>> Also shrink the field to unsigned int, even if this doesn't immediately
>>>> yield any space benefit for the structure itself. The resulting 32-bit
>>>> padding slot can eventually be used for some other field. The change in
>>>> size makes accesses slightly more efficient though, as no REX.W prefix
>>>> is going to be needed anymore on the respective insns.
>>>>
>>>> Mirror the HVM side change here (dropping of setting the field to
>>>> VGCF_online) also to Arm, on the assumption that it was cloned like
>>>> this originally. VGCF_online really should simply and consistently be
>>>> the guest view of the inverse of VPF_down, and hence needs representing
>>>> only in the get/set vCPU context interfaces.
>>>
>>> But vPSCI is just a wrapper to get/set vCPU context interfaces. Your
>>> changes below will clearly break bring-up of secondary vCPUs on Arm.
>>>
>>> This is because arch_set_guest_info() will rely on this flag to
>>> clear/set VPF_down in the pause flags.
>>>
>>> So I think the line in arm/vpsci.c should be left alone.
>>
>> Oh, I see - I didn't notice this (ab)use despite ...
>>
> 
> Out of Interest, why do you think it is an abuse here and not in the
> toolstack?
> 
> How do you suggest to improve it? I can add it in my improvement list for
> Arm.

Oh, "abuse" was about the arch_set_guest_info() use, not the use of
the flag by the tool stack.

Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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