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

Re: [PATCH] x86/hvm: Widen condition for is_hvm_pv_evtchn_vcpu()


  • To: Jane Malalane <Jane.Malalane@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 18 May 2022 12:44:58 +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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZfxO6lat6NUulj4RhVj5pUT29acG6GHwB2SMywf12PU=; b=Hd7cDoUd/ZVlAy2dRdtUBzc121zmuskXs1Adt7dsFzo1R9igyPNSPn1zpSpMfnqBDkRNP+O7EVd5TAgWDJmflDxAApAdVRXJ50NsO/0AA/RAh1p5P7NlEShSWQOQ0UcqWnTGhkR4lpZpuhDWiqljMzorIOsmgZj5NBvNliyBxrqRNSoI0FBZphNZBjv/nFjgfTuWy7xWjjjDDznxZLXVgroFULJPh58dAkI+S92MMVpqyjrVQXBZcEXqqjU8VDpJPX3yFr1m1/UGvuUTDdgQG7BEia2o8Cg8pxM9BndopUkZc6LdhEvnU10DMHYaiRXxqgGkUTN7KmiawgFCKp1QHw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IBbT7+AsyQKjyFR119Ehp/XnLUUHQ9IEH3SwCgWTFm95kKm6JwF4cR07wjassEGeDqWqh9pZBZJqdT/3gPxj2NJdo5JXv7mMAVcHRgVj66ypdgOmMsUqPQmQ0YdU3rcPn9aGUIf1Z+OOQ7TV+v+2diviWeALVz+wRHsPt2Et1T0zpO4pdeGUSPonL8YM2KomWtJKrWAL/JoqFfy2dW0QtiDxQg0s44p/teNHAxGr2W96bQsqMSC+1P0N7UgPTOPfAK0WxhicYzz/CAeoNz5bVR1qLue8xQ0JecMb+arPmHZuPGa7fTEdeRrQdSU95z7eV0oPTCJKLxspkOhR4NqrWQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 18 May 2022 10:45:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.05.2022 12:38, Jane Malalane wrote:
> On 18/05/2022 10:09, Jan Beulich wrote:
>> [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments 
>> unless you have verified the sender and know the content is safe.
>>
>> On 13.05.2022 17:39, Roger Pau Monné wrote:
>>> On Wed, May 11, 2022 at 04:14:23PM +0100, Jane Malalane wrote:
>>>> Have is_hvm_pv_evtchn_vcpu() return true for vector callbacks for
>>>> evtchn delivery set up on a per-vCPU basis via
>>>> HVMOP_set_evtchn_upcall_vector.
>>>>
>>>> is_hvm_pv_evtchn_vcpu() returning true is a condition for setting up
>>>> physical IRQ to event channel mappings.
>>>
>>> I would add something like:
>>>
>>> The naming of the CPUID bit is a bit generic about upcall support
>>> being available.  That's done so that the define name doesn't get
>>> overly long like XEN_HVM_CPUID_UPCALL_VECTOR_SUPPORTS_PIRQ or some
>>> such.
>>
>> On top of this at least half a sentence wants saying on why a new
>> CPUID bit is introduced in the first place. This doesn't derive in
>> any way from title or description. It would be only then when it
>> is additionally explained why the name was chosen like this.Indeed it is 
>> incomplete, thanks for pointing that out.
> 
> I could add:
> "A CPUID bit is added so that guests know whether the check
> in is_hvm_pv_evtchn_domain() will fail when using
> HVMOP_set_evtchn_upcall_vector. This matters for guests that route
> PIRQs over event channels since is_hvm_pv_evtchn_domain() is a
> condition in physdev_map_pirq()."
> 
> Would this be enough clarification?

Yes, thanks.

Jan




 


Rackspace

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