>>> On 15.05.18 at 16:36, <roger....@citrix.com> 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 <jbeul...@suse.com>
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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to