Subject line is not reflecting what this commit does.

"Add support for reading GICR_TYPER high word separately" or so.

On 15.08.20 21:09, Alice Guo wrote:
Because use mmio_read32() to read 64-bit GICR_ TYPER in twice, add
processing case for reading the higher 32 bits of GICR_TYPER in
gicv3_handle_redist_access().

Reasoning should be around "this is needed for 32-bit guests that cannot issue 64-bit accesses".


Signed-off-by: Alice Guo <[email protected]>
---
  hypervisor/arch/arm-common/gic-v3.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/hypervisor/arch/arm-common/gic-v3.c 
b/hypervisor/arch/arm-common/gic-v3.c
index 6a1d90f8..584c2c79 100644
--- a/hypervisor/arch/arm-common/gic-v3.c
+++ b/hypervisor/arch/arm-common/gic-v3.c
@@ -351,6 +351,9 @@ static enum mmio_result gicv3_handle_redist_access(void 
*arg,
                if (cpu_public->cpu_id == last_gicr)
                                mmio->value |= GICR_TYPER_Last;
                return MMIO_HANDLED;
+       case GICR_TYPER + 4:
+               mmio_perform_access(cpu_public->gicr.base, mmio);
+               return MMIO_HANDLED;
        case GICR_IIDR:
        case 0xffd0 ... 0xfffc: /* ID registers */
                /*


Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/72d6b271-de4c-077c-5e94-890907ac4f35%40siemens.com.

Reply via email to