Re: [PATCH 21/29] KVM: x86: Explicitly #define the VCPU_REGS_* indices

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

 



On 18/01/19 22:20, Sean Christopherson wrote:
>  enum kvm_reg {
> -	VCPU_REGS_RAX = 0,
> -	VCPU_REGS_RCX = 1,
> -	VCPU_REGS_RDX = 2,
> -	VCPU_REGS_RBX = 3,
> -	VCPU_REGS_RSP = 4,
> -	VCPU_REGS_RBP = 5,
> -	VCPU_REGS_RSI = 6,
> -	VCPU_REGS_RDI = 7,
> +	VCPU_REGS_RAX = VCPU_RAX_IDX,
> +	VCPU_REGS_RCX = VCPU_RCX_IDX,
> +	VCPU_REGS_RDX = VCPU_RDX_IDX,
> +	VCPU_REGS_RBX = VCPU_RBX_IDX,
> +	VCPU_REGS_RSP = VCPU_RSP_IDX,
> +	VCPU_REGS_RBP = VCPU_RBP_IDX,
> +	VCPU_REGS_RSI = VCPU_RSI_IDX,
> +	VCPU_REGS_RDI = VCPU_RDI_IDX,

Perhaps a better name for the #defines is __VCPU_REGS_Rxx?

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux