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