mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
The VirtMachineClass::disallow_affinity_adjustment field was only used by virt-2.6 machine, which got removed. Remove it and simplify virt_cpu_mp_affinity(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> [PMM: Remove now-unused variable] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
514712d527
commit
7f48918a37
2 changed files with 15 additions and 17 deletions
|
@ -1770,11 +1770,10 @@ void virt_machine_done(Notifier *notifier, void *data)
|
||||||
|
|
||||||
static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)
|
static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)
|
||||||
{
|
{
|
||||||
uint8_t clustersz = ARM_DEFAULT_CPUS_PER_CLUSTER;
|
uint8_t clustersz;
|
||||||
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
|
|
||||||
|
|
||||||
if (!vmc->disallow_affinity_adjustment) {
|
/*
|
||||||
/* Adjust MPIDR like 64-bit KVM hosts, which incorporate the
|
* Adjust MPIDR like 64-bit KVM hosts, which incorporate the
|
||||||
* GIC's target-list limitations. 32-bit KVM hosts currently
|
* GIC's target-list limitations. 32-bit KVM hosts currently
|
||||||
* always create clusters of 4 CPUs, but that is expected to
|
* always create clusters of 4 CPUs, but that is expected to
|
||||||
* change when they gain support for gicv3. When KVM is enabled
|
* change when they gain support for gicv3. When KVM is enabled
|
||||||
|
@ -1787,7 +1786,7 @@ static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)
|
||||||
} else {
|
} else {
|
||||||
clustersz = GICV3_TARGETLIST_BITS;
|
clustersz = GICV3_TARGETLIST_BITS;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return arm_build_mp_affinity(idx, clustersz);
|
return arm_build_mp_affinity(idx, clustersz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,6 @@ typedef enum VirtGICType {
|
||||||
|
|
||||||
struct VirtMachineClass {
|
struct VirtMachineClass {
|
||||||
MachineClass parent;
|
MachineClass parent;
|
||||||
bool disallow_affinity_adjustment;
|
|
||||||
bool no_its;
|
bool no_its;
|
||||||
bool no_tcg_its;
|
bool no_tcg_its;
|
||||||
bool claim_edge_triggered_timers;
|
bool claim_edge_triggered_timers;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue