mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
cpu: Drop false support for ARM cpu-model
The ARM CPU driver wrongly reported host CPU model as "host", which made host-model to be just an alias for host-passthrough. Let's drop this insanity. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
68c7011856
commit
10d0e6e9c8
@ -37,36 +37,6 @@ static const virArch archs[] = {
|
||||
VIR_ARCH_AARCH64,
|
||||
};
|
||||
|
||||
static virCPUDataPtr
|
||||
armNodeData(virArch arch)
|
||||
{
|
||||
virCPUDataPtr data;
|
||||
|
||||
if (VIR_ALLOC(data) < 0)
|
||||
return NULL;
|
||||
|
||||
data->arch = arch;
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
static int
|
||||
armDecode(virCPUDefPtr cpu,
|
||||
const virCPUData *data ATTRIBUTE_UNUSED,
|
||||
const char **models ATTRIBUTE_UNUSED,
|
||||
unsigned int nmodels ATTRIBUTE_UNUSED,
|
||||
const char *preferred ATTRIBUTE_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
virCheckFlags(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, -1);
|
||||
|
||||
if (cpu->model == NULL &&
|
||||
VIR_STRDUP(cpu->model, "host") < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
armDataFree(virCPUDataPtr data)
|
||||
{
|
||||
@ -128,10 +98,10 @@ struct cpuArchDriver cpuDriverArm = {
|
||||
.arch = archs,
|
||||
.narch = ARRAY_CARDINALITY(archs),
|
||||
.compare = armCompare,
|
||||
.decode = armDecode,
|
||||
.decode = NULL,
|
||||
.encode = NULL,
|
||||
.free = armDataFree,
|
||||
.nodeData = armNodeData,
|
||||
.nodeData = NULL,
|
||||
.guestData = armGuestData,
|
||||
.baseline = armBaseline,
|
||||
.update = armUpdate,
|
||||
|
Loading…
Reference in New Issue
Block a user