diff options
| author | Gu Zheng | 2014-10-22 05:24:29 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-11-02 12:44:11 +0100 |
| commit | 2d996150ed68edb8754b73b36a3db187c08f2ba7 (patch) | |
| tree | fd52b0c303509e2aaf60d7c3cf3a75b5851d027f /include | |
| parent | pc: add cpu hotplug handler to PC_MACHINE (diff) | |
| download | qemu-2d996150ed68edb8754b73b36a3db187c08f2ba7.tar.gz qemu-2d996150ed68edb8754b73b36a3db187c08f2ba7.tar.xz qemu-2d996150ed68edb8754b73b36a3db187c08f2ba7.zip | |
pc: Update rtc_cmos in pc_cpu_plug
Update rtc_cmos in pc_cpu_plug() directly, instead of the notifier.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/i386/pc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 02a1d615a6..d1011978e0 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -34,6 +34,7 @@ struct PCMachineState { MemoryRegion hotplug_memory; HotplugHandler *acpi_dev; + ISADevice *rtc; uint64_t max_ram_below_4g; }; @@ -211,7 +212,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, uint32 hpet_irqs); void pc_init_ne2k_isa(ISABus *bus, NICInfo *nd); void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, - const char *boot_device, + const char *boot_device, MachineState *machine, ISADevice *floppy, BusState *ide0, BusState *ide1, ISADevice *s); void pc_nic_init(ISABus *isa_bus, PCIBus *pci_bus); |
