Re: [Xen-devel] [PATCH v3 3/3] xen: prevent access to HPET from Dom0

2015-01-23 Thread Roger Pau Monné
El 22/01/15 a les 16.47, Jan Beulich ha escrit: On 22.01.15 at 16:19, wrote: >> --- a/xen/arch/x86/domain_build.c >> +++ b/xen/arch/x86/domain_build.c >> @@ -36,6 +36,7 @@ >> #include /* for bzimage_parse */ >> #include >> #include >> +#include /* for hpet_address */ > > Please drop t

Re: [Xen-devel] [PATCH v3 3/3] xen: prevent access to HPET from Dom0

2015-01-22 Thread Jan Beulich
>>> On 22.01.15 at 16:19, wrote: > --- a/xen/arch/x86/domain_build.c > +++ b/xen/arch/x86/domain_build.c > @@ -36,6 +36,7 @@ > #include /* for bzimage_parse */ > #include > #include > +#include /* for hpet_address */ Please drop the comment - with hpet_flags it's now stale > @@ -1495,6 +1

[Xen-devel] [PATCH v3 3/3] xen: prevent access to HPET from Dom0

2015-01-22 Thread Roger Pau Monne
Prevent Dom0 from accessing HPET MMIO region by adding the HPET mfn to the list of forbiden memory regions (if ACPI_HPET_PAGE_PROTECT4 flag is set) or to the list of read-only regions. Also provide an option that prevents adding the HPET to the read-only memory regions called ro-hpet, in case ther