[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/21] target-i386: pc: update rtc_cmos on CPU h
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 06/21] target-i386: pc: update rtc_cmos on CPU hot-plug |
Date: |
Wed, 24 Apr 2013 22:04:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
Am 24.04.2013 19:03, schrieb Andreas Färber:
> Am 23.04.2013 10:29, schrieb Igor Mammedov:
>> it provides updated currently available CPUs count to BIOS on reboot
>>
>> Signed-off-by: Igor Mammedov <address@hidden>
>> ---
>> v2:
>> * reorder fields in rtc_cpu_hotplug_arg, make cpu_added_notifier first.
>> * rebase on top of "mc146818rtc: QOM'ify" and use QOM style cast
>> ---
>> hw/i386/pc.c | 20 ++++++++++++++++++++
>> hw/timer/mc146818rtc.c | 7 +++++++
>> include/hw/timer/mc146818rtc.h | 1 +
>> 3 files changed, 28 insertions(+), 0 deletions(-)
>>
>> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
>> index 0d6e72b..bbc3bea 100644
>> --- a/hw/i386/pc.c
>> +++ b/hw/i386/pc.c
>> @@ -338,6 +338,21 @@ static void pc_cmos_init_late(void *opaque)
>> qemu_unregister_reset(pc_cmos_init_late, opaque);
>> }
>>
>> +typedef struct rtc_cpu_hotplug_arg {
>> + Notifier cpu_added_notifier;
>> + ISADevice *rtc_state;
>> +} rtc_cpu_hotplug_arg;
>
> RTCCPUHotplugArg?
Igor agreed to this variant on IRC.
Thanks, applied to qom-cpu:
https://github.com/afaerber/qemu-cpu/commits/qom-cpu
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
[Qemu-devel] [PATCH 15/19 v2] extend memory_region_find() and use it in kvm/ioapic, Igor Mammedov, 2013/04/24
[Qemu-devel] [PATCH 04/21] cpu: resume CPU from CPUClass.cpu_common_realizefn() when it is hot-plugged, Igor Mammedov, 2013/04/23
[Qemu-devel] [PATCH 06/21] target-i386: pc: update rtc_cmos on CPU hot-plug, Igor Mammedov, 2013/04/23
[Qemu-devel] [PATCH 05/21] introduce CPU hot-plug notifier, Igor Mammedov, 2013/04/23