powerpc/64s: Allocate LPPACAs individually
We no longer allocate lppacas in an array, so this patch removes the 1kB static alignment for the structure, and enforces the PAPR alignment requirements at allocation time. We can not reduce the 1kB allocation size however, due to existing KVM hypervisors. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tento commit je obsažen v:

odevzdal
Michael Ellerman

rodič
d2e60075a3
revize
499dcd4137
@@ -1110,7 +1110,7 @@ static void setup_cpu_associativity_change_counters(void)
|
||||
for_each_possible_cpu(cpu) {
|
||||
int i;
|
||||
u8 *counts = vphn_cpu_change_counts[cpu];
|
||||
volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts;
|
||||
volatile u8 *hypervisor_counts = lppaca_of(cpu).vphn_assoc_counts;
|
||||
|
||||
for (i = 0; i < distance_ref_points_depth; i++)
|
||||
counts[i] = hypervisor_counts[i];
|
||||
@@ -1136,7 +1136,7 @@ static int update_cpu_associativity_changes_mask(void)
|
||||
for_each_possible_cpu(cpu) {
|
||||
int i, changed = 0;
|
||||
u8 *counts = vphn_cpu_change_counts[cpu];
|
||||
volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts;
|
||||
volatile u8 *hypervisor_counts = lppaca_of(cpu).vphn_assoc_counts;
|
||||
|
||||
for (i = 0; i < distance_ref_points_depth; i++) {
|
||||
if (hypervisor_counts[i] != counts[i]) {
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele