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

Re: [Xen-devel] [PATCH v11 1/2] x86/viridian: Re-purpose the HVM parameter to be a feature mask



Paul Durrant writes ("[PATCH v11 1/2] x86/viridian: Re-purpose the HVM 
parameter to be a feature mask"):
> The following commits introduced the time reference counter MSR and
> TSC/APIC frequency MSRs into the viridian feature set respectively:

The libxl and libxc parts of this, and the corresponding docs, look
good to me, apart from one part that I would like Ian C to comment on
- see below.

If you had separated that out into a patch of its own, I would have
given a tools ack to this one :-).

Thanks,
Ian.

>  tools/libxl/gentypes.py         |    6 +++
...
> diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py
> index 3e73821..e101de4 100644
> --- a/tools/libxl/gentypes.py
> +++ b/tools/libxl/gentypes.py
> @@ -564,6 +564,8 @@ if __name__ == '__main__':
...
> +        f.write("%s %s_min_val = %d;\n" % (ty.typename, ty.typename, ty.min))
> +        f.write("%s %s_max_val = %d;\n" % (ty.typename, ty.typename, ty.max))
> +        f.write("\n")
> +
...
> diff --git a/tools/libxl/idl.py b/tools/libxl/idl.py
> index 437049e..983253d 100644
> --- a/tools/libxl/idl.py
> +++ b/tools/libxl/idl.py
> @@ -174,9 +174,15 @@ class Enumeration(Type):
>              self.namespace)
>  
>          self.values = []
> +        self.min = sys.maxint
> +        self.max = -sys.maxint - 1
>          for v in values:
>              # (value, name)
>              (num,name) = v
> +            if num < self.min:
> +                self.min = num
> +            if num > self.max:
> +                self.max = num


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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