diff options
| author | Gautam Menghani <gautam@linux.ibm.com> | 2026-10-12 13:59:18 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-11-10 16:56:15 +0530 |
| commit | b9d9a8741752c5b42c65b1c8dffba867889b74e5 (patch) | |
| tree | f1c1bb4bae0e122ec68fc353679414f6f056a9b3 /tools/perf/scripts/python/bin | |
| parent | d8c6ab0aeeca7cc2adfcf0ce1f796c6a86314ec0 (diff) | |
KVM: PPC: Book3S HV: XICS: Update irq_type for cleanup to work
In kvmppc_xive_connect_vcpu(), if any failures are encountered, the
control flow jumps to the 'bail' label where kvmppc_xive_cleanup_vcpu()
is called. This cleanup function exits prematurely since
vcpu->arch.irq_type is set to KVMPPC_IRQ_DEFAULT at this point. This ends
up resulting in wasted memory.
Fix this by setting irq_type to KVMPPC_IRQ_XICS before vcpu configuration
starts. This makes XICS initialization symmetrical to XIVE
initialization done in kvmppc_xive_native_connect_vcpu().
Fixes: 5af50993850a ("KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller")
Cc: stable@vger.kernel.org # 4.12+
Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20261012082922.218799-3-gautam@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
