summary refs log tree commit diff stats
path: root/hw/xen/xen-mapcache.c
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2024-05-28 16:38:53 +0800
committerSong Gao <gaosong@loongson.cn>2024-06-06 11:56:45 +0800
commitdc6f37eb957b2888fea78bda9da0cf0840dd795f (patch)
tree21963ef18289310c7465d76d4ab39d6b72fe4aa7 /hw/xen/xen-mapcache.c
parenta73f7a00eea15c75fe9cfbeeaff5228f5ee24b61 (diff)
downloadfocaccia-qemu-dc6f37eb957b2888fea78bda9da0cf0840dd795f.tar.gz
focaccia-qemu-dc6f37eb957b2888fea78bda9da0cf0840dd795f.zip
hw/intc/loongarch_extioi: Add extioi virt extension definition
On LoongArch, IRQs can be routed to four vcpus with hardware extended
IRQ model. This patch adds the virt extension definition so that
the IRQ can route to 256 vcpus.

    1.Extended IRQ model:
                                    |
    +-----------+     +-------------|--------+     +-----------+
    | IPI/Timer | --> | CPUINTC(0-3)|(4-255) | <-- | IPI/Timer |
    +-----------+     +-------------|--------+     +-----------+
                            ^       |
                            |
                       +---------+
                       | EIOINTC |
                       +---------+
                        ^       ^
                        |       |
                 +---------+ +---------+
                 | PCH-PIC | | PCH-MSI |
                 +---------+ +---------+
                   ^      ^          ^
                   |      |          |
            +--------+ +---------+ +---------+
            | UARTs  | | Devices | | Devices |
            +--------+ +---------+ +---------+

    2.Virt extended IRQ model:

      +-----+    +---------------+     +-------+
      | IPI |--> | CPUINTC(0-255)| <-- | Timer |
      +-----+    +---------------+     +-------+
                        ^
                        |
                  +-----------+
                  | V-EIOINTC |
                  +-----------+
                   ^         ^
                   |         |
            +---------+ +---------+
            | PCH-PIC | | PCH-MSI |
            +---------+ +---------+
              ^      ^          ^
              |      |          |
       +--------+ +---------+ +---------+
       | UARTs  | | Devices | | Devices |
       +--------+ +---------+ +---------+

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240528083855.1912757-2-gaosong@loongson.cn>
Diffstat (limited to 'hw/xen/xen-mapcache.c')
0 files changed, 0 insertions, 0 deletions