Re: [PATCH v2 1/6] KVM: x86: Add dedicated storage for guest RIP
From: Chang S. Bae
Date: Tue Apr 14 2026 - 10:03:24 EST
On 4/14/2026 5:31 AM, Xiaoyao Li wrote:
Even leave RIP in regs[], what is the problem by just allocating the index 16-31 to R16-R31 and making RIP the index 32?
But why?
Even though the array isn't explicitly labeled as GPRs, that's effectively how it's being used, and RIP isn't part of that set.
I don't think there is any benefit of leaving it in regs[]. Instead, It can be stored like that simple, period.
Thanks,
Chang