qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 04/19] pc: cpu: consolidate apic-id validity


From: Eduardo Habkost
Subject: Re: [Qemu-devel] [PATCH v3 04/19] pc: cpu: consolidate apic-id validity checks in pc_cpu_pre_plug()
Date: Mon, 11 Jul 2016 23:28:51 -0300
User-agent: Mutt/1.6.1 (2016-04-27)

On Wed, Jul 06, 2016 at 08:20:40AM +0200, Igor Mammedov wrote:
[...]
> +static void pc_cpu_pre_plug(HotplugHandler *hotplug_dev,
> +                            DeviceState *dev, Error **errp)
> +{
> +    int idx;
> +    X86CPU *cpu = X86_CPU(dev);
> +    PCMachineState *pcms = PC_MACHINE(hotplug_dev);
> +    CPUArchId *cpu_slot = pc_find_cpu_slot(pcms, CPU(dev), &idx);

Why are you passing &idx to pc_find_cpu_slot() here, if you don't
use it for anything?

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]