commit | 8db29ea2391cc6f5b73cc9c04b2dee4409b9fc05 | [log] [tgz] |
---|---|---|
author | Greg Kurz <groug@kaod.org> | Fri Sep 27 13:53:55 2019 +0200 |
committer | Paul Mackerras <paulus@ozlabs.org> | Tue Oct 22 16:29:02 2019 +1100 |
tree | 2ab71ed7ee4181ec6a7eb6afee2c1bb9bb6a36c5 | |
parent | 8a4e7597ba1e41030189b73cd7261f4383588d1d [diff] |
KVM: PPC: Book3S HV: XIVE: Compute the VP id in a common helper Reduce code duplication by consolidating the checking of vCPU ids and VP ids to a common helper used by both legacy and native XIVE KVM devices. And explain the magic with a comment. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>