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

Re: [Xen-devel] [PATCH v2 2/6] mtrr: introduce mask to get VCNT from MTRRcap MSR



>>> On 15.05.18 at 16:36, <roger.pau@xxxxxxxxxx> wrote:
> @@ -478,7 +478,7 @@ bool_t mtrr_pat_not_equal(struct vcpu *vd, struct vcpu 
> *vs)
>      struct mtrr_state *md = &vd->arch.hvm_vcpu.mtrr;
>      struct mtrr_state *ms = &vs->arch.hvm_vcpu.mtrr;
>      int32_t res;
> -    uint8_t num_var_ranges = (uint8_t)md->mtrr_cap;
> +    uint8_t num_var_ranges = MASK_EXTR(md->mtrr_cap, MTRRcap_VCNT);

With the type changed to unsigned int here
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
Of course this is easy enough to do while committing, should no other need
for a v3 arise.

Jan



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

 


Rackspace

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