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

Re: [PATCH v2 2/2] domain: expose newly introduced hypercalls as XENFEAT


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Fri, 6 Oct 2023 14:02:27 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=yOQU+dqLCag2RJFZcdSsP3klK/RUhZ7eIVUMFZp8Lsc=; b=Zst94xsqd0pQtk0eQlgokwkHLV5V0MGGTB4H3yITkr/b80Rt3MyL2Dcsp80wAG/afLfPHMsbbcyqjHWj6SPocxJYspxWPKyFloejv2IoHsf4QKnw/WEOnVSMXtzR3js4DQiAKBAcWwzVKFnNSmKFzItwL9k/oFQOQoHmLvAD+PZp9Umlu8OHPEgi2kAb1SKliLfM54kHSWa0KON1ZVrQOR/BU4yfcKyZ+/+QcPtdTz3hVwpT9+bPTRGigWSXTc/gCO08elYk/DqSw4Hgivd93sCve3/8HR+c2nD80vHrf3tpaVhEgZKNcDdl/rcb3PgHFlyBK4C9NlIR9D2vJh/uDw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jWJMtznTV5/Oob4+k6AoQr0DQc4Z9/nMWJrlEwlGrdCqBgHihK08eo1MlJr74d/KXFGydCHfIs2NJjzW5JRFVVFjQgCWQIGexoxq1u7g8ZqSAFN9l5eeiLKU7NtwrbKJ0fyfIyB0eZmPscds1giC/IzsXL1Sy4O25tzrc0jAsIL6tM6AdTZ6MDE0FoUaVoQjxyEHEeyCDvXHosJI43BOjqqq2dMoDVwZZHRePteM60H9zX29Xh2DIn4Gd3Gxpe5tJk49DAL7NtIyv0MQx9DNl2tzRzeEL0TcNCm7fJJlgezpxSPILIy2JCsx6bDDyJJc/rPs9TXby+grq5PLedLBjg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 06 Oct 2023 14:02:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZ+FVZUPfMale+2EmZAlhfgl1uHrA8utcAgAAP6wA=
  • Thread-topic: [PATCH v2 2/2] domain: expose newly introduced hypercalls as XENFEAT

Hi,

> On Oct 6, 2023, at 21:05, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> 
> On 06/10/2023 2:00 pm, Roger Pau Monne wrote:
>> diff --git a/xen/include/public/features.h b/xen/include/public/features.h
>> index d2a9175aae67..22713a51b520 100644
>> --- a/xen/include/public/features.h
>> +++ b/xen/include/public/features.h
>> @@ -111,6 +111,15 @@
>> #define XENFEAT_not_direct_mapped         16
>> #define XENFEAT_direct_mapped             17
>> 
>> +/*
>> + * Signal whether the domain is permitted to use the following hypercalls:
>> + *
>> + * VCPUOP_register_runstate_phys_area
>> + * VCPUOP_register_vcpu_time_phys_area
>> + */
>> +#define XENFEAT_runstate_phys_area  18
>> +#define XENFEAT_vcpu_time_phys_area  19
>> +
>> #define XENFEAT_NR_SUBMAPS 1
>> 
>> #endif /* __XEN_PUBLIC_FEATURES_H__ */
>> diff --git a/xen/include/public/vcpu.h b/xen/include/public/vcpu.h
>> index 8fb0bd1b6c03..03b031a3e557 100644
>> --- a/xen/include/public/vcpu.h
>> +++ b/xen/include/public/vcpu.h
>> @@ -236,6 +236,9 @@ 
>> DEFINE_XEN_GUEST_HANDLE(vcpu_register_time_memory_area_t);
>>  * Note that the area registered via VCPUOP_register_runstate_memory_area 
>> will
>>  * be updated in the same manner as the one registered via virtual address 
>> PLUS
>>  * VMASST_TYPE_runstate_update_flag engaged by the domain.
>> + *
>> + * XENFEAT_{runstate,vcpu_time}_phys_area feature bits signal if the domain 
>> is
>> + * permitted the usage of the hypercalls.
>>  */
>> #define VCPUOP_register_runstate_phys_area      14
>> #define VCPUOP_register_vcpu_time_phys_area     15
> 
> For both of these, I'd suggest s/permitted/able/.  For older versions of
> Xen which don't advertise the XENFEAT, it's a matter of capability, not
> permission.
> 
> Otherwise, Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> and
> I'm happy to adjust on commit to save sending out a v3.

Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry

> 
> Thanks,
> 
> ~Andrew




 


Rackspace

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