]> www.infradead.org Git - users/dwmw2/qemu.git/commit
pnv/xive2: Configure Virtualization Structure Tables through the PC
authorFrederic Barrat <fbarrat@linux.ibm.com>
Wed, 24 Jul 2024 21:21:24 +0000 (16:21 -0500)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:33 +0000 (09:51 +1000)
commit1775b7d1091452dab24ef23ddc1b7c1943a5e9e4
tree4cdb28c2716fdfbb7705a3fdd3a7e8003f56b133
parentd6d5f5c0347b124319ff9c0a43358bdae1d7ea26
pnv/xive2: Configure Virtualization Structure Tables through the PC

Both the virtualization layer (VC) and presentation layer (PC) need to
be configured to access the VSTs. Since the information is redundant,
the xive model combines both into one set of tables and only the
definitions going through the VC are kept. The definitions through the
PC are ignored. That works well as long as firmware calls the VC for
all the tables.

For the NVG and NVC tables, it can make sense to only configure them
with the PC, since they are only used by the presenter. So this patch
allows firmware to configure the VST tables through the PC as well.
The definitions are still shared, since the VST tables can be set
through both the VC and/or PC, they are dynamically re-mapped in
memory by first deleting the memory subregion.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Kowal <kowal@linux.vnet.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/pnv_xive2.c