On 14.08.2019 12:13, Paul Durrant wrote:
From: Jan Beulich <jbeul...@suse.com>
Sent: 07 August 2019 11:41

On 30.07.2019 15:44, Paul Durrant wrote:
Thes macros really ought to live in the common xen/iommu.h header rather
then being distributed amongst architecture specific iommu headers and
xen/sched.h. This patch moves them there.

NOTE: Disabling 'sharept' in the command line iommu options should really
        be hard error on ARM (as opposed to just being ignored), so avoid
        parsing that option if CONFIG_ARM is set.

Agreed. At that point the latest it would perhaps be good to have
Arm have
#define iommu_hap_pt_share true

I don't quite follow. iommu_hap_pt_share is a global bool_t defined in 
passthrough/iommu.c... I'm just preventing an ARM command line from being able 
to change the value... so in effect it will always be true for ARM.

The point of my comment was to allow the compiler to eliminate dead
(on Arm) code. Along the lines of Julien's subsequent replies, things
like hap_enabled() and the one here should imo be compile time
constants (rather than runtime ones) for this reason.

Jan

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

Reply via email to