All of lore.kernel.org
 help / color / mirror / Atom feed
* HCR_EL2 GET_ONE_REG value difference
@ 2025-10-10  8:30 Jan Kotas
  2025-10-10  9:37 ` Marc Zyngier
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kotas @ 2025-10-10  8:30 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: Oliver Upton, Jan Kotas, kvmarm@lists.linux.dev

Hello,

During NV debugging I noticed a difference in HCR_EL2 value.

The value I get from accessing this register, using KVM_GET_ONE_REG:
0x30480000000

However, X1 value after executing mrs x1, hcr_el2 in guest:
0x100030080000000

I access both of these at the same place.
I get the list of available registers from KVM_GET_REG_LIST.

I double checked my encoding, and it seems to be correct.
HCR_EL2 3, 4, 1, 1, 0

I can check other registers, but I first wanted to check, if this expected?
Is there something I’m missing, when accessing emulated registers?

Regards,
Jan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-10 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10  8:30 HCR_EL2 GET_ONE_REG value difference Jan Kotas
2025-10-10  9:37 ` Marc Zyngier
2025-10-10  9:51   ` Jan Kotas
2025-10-10 10:31     ` Marc Zyngier
2025-10-10 10:59       ` Jan Kotas
2025-10-10 11:59         ` Marc Zyngier
2025-10-10 12:49           ` Jan Kotas
2025-10-10 13:12             ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.