[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v6 02/10] x86/hvm/domain: remove the 'hap_enabled' flag
- To: Paul Durrant <paul.durrant@xxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 23 Aug 2019 12:05:57 +0200
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Fri, 23 Aug 2019 10:06:21 +0000
- Ironport-sdr: O403kqXG6HQlePwPSxKG/U3wSwqk34+h4fVvYSFr91ybWI5vGgfvKqKbEclUQLBKwR60Fh9Qqw EFJTEGy6LlVynL/A4MSxwX1sBA0HC3VmjXHG4Y2do23WVjZObKMuo6VUJ8ejk/eT4zEEf14Cod x01CJzbt+S6srzZkDBROV5C2TbRif88x8/MRUWXBvPvutLYxhtl8ZMbRCan2yLDcYIz7peBVzu UEqkkr7FnDl+TJNPryYal/x1fTKECVZK1tqVHvXHvUh4MFH8tU2SVc9XOnsgE7dAMS35ahoufe MEY=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Fri, Aug 16, 2019 at 06:19:53PM +0100, Paul Durrant wrote:
> The hap_enabled() macro can determine whether the feature is available
> using the domain 'options'; there is no need for a separate flag.
>
> NOTE: Furthermore, by extending sanitiziing of the domain 'options', the
> macro can be transformed into an inline function and re-located to
> xen/sched.h. This also makes hap_enabled() common, thus allowing
> removal of an ugly ifdef CONFIG_X86 from the common iommu code.
>
> Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|