mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
KVM: arm64: Delay the polling of the GICR_VPENDBASER.Dirty bit
In order to reduce the impact of the VPT parsing happening on the GIC, we can split the vcpu reseidency in two phases: - programming GICR_VPENDBASER: this still happens in vcpu_load() - checking for the VPT parsing to be complete: this can happen on vcpu entry (in kvm_vgic_flush_hwstate()) This allows the GIC and the CPU to work in parallel, rewmoving some of the entry overhead. Suggested-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Shenming Lu <lushenming@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20201128141857.983-3-lushenming@huawei.com
This commit is contained in:
parent
bf118a5cb7
commit
57e3cebd02
6 changed files with 47 additions and 4 deletions
|
@ -39,6 +39,8 @@ struct its_vpe {
|
|||
irq_hw_number_t vpe_db_lpi;
|
||||
/* VPE resident */
|
||||
bool resident;
|
||||
/* VPT parse complete */
|
||||
bool ready;
|
||||
union {
|
||||
/* GICv4.0 implementations */
|
||||
struct {
|
||||
|
@ -104,6 +106,7 @@ enum its_vcpu_info_cmd_type {
|
|||
PROP_UPDATE_AND_INV_VLPI,
|
||||
SCHEDULE_VPE,
|
||||
DESCHEDULE_VPE,
|
||||
COMMIT_VPE,
|
||||
INVALL_VPE,
|
||||
PROP_UPDATE_VSGI,
|
||||
};
|
||||
|
@ -129,6 +132,7 @@ int its_alloc_vcpu_irqs(struct its_vm *vm);
|
|||
void its_free_vcpu_irqs(struct its_vm *vm);
|
||||
int its_make_vpe_resident(struct its_vpe *vpe, bool g0en, bool g1en);
|
||||
int its_make_vpe_non_resident(struct its_vpe *vpe, bool db);
|
||||
int its_commit_vpe(struct its_vpe *vpe);
|
||||
int its_invall_vpe(struct its_vpe *vpe);
|
||||
int its_map_vlpi(int irq, struct its_vlpi_map *map);
|
||||
int its_get_vlpi(int irq, struct its_vlpi_map *map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue