On 16/02/18 12:10, Roger Pau Monne wrote:
> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
> index d93166fb92..811d4c10ae 100644
> --- a/xen/include/asm-x86/hvm/vcpu.h
> +++ b/xen/include/asm-x86/hvm/vcpu.h
> @@ -156,6 +156,9 @@ struct hvm_vcpu {
> */
> unsigned long hw_cr[5];
>
> + /* Cached copy of the trapped bits of CRs. Used for CR0 and CR4. */
> + unsigned long mask_cr[5];
We only need masks for cr0 and cr4, and I don't expect this to change
for the foreseeable future (CR4 still has plenty of available bits in
it). I'd recommend:
unsigned long cr0_host_mask, cr4_host_mask;
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel