Statistics
| Branch: | Revision:

root / hw / i386 / pc_q35.c @ 254c1282

History | View | Annotate | Download (9.3 kB)

1 df2d8b3e Isaku Yamahata
/*
2 df2d8b3e Isaku Yamahata
 * Q35 chipset based pc system emulator
3 df2d8b3e Isaku Yamahata
 *
4 df2d8b3e Isaku Yamahata
 * Copyright (c) 2003-2004 Fabrice Bellard
5 df2d8b3e Isaku Yamahata
 * Copyright (c) 2009, 2010
6 df2d8b3e Isaku Yamahata
 *               Isaku Yamahata <yamahata at valinux co jp>
7 df2d8b3e Isaku Yamahata
 *               VA Linux Systems Japan K.K.
8 df2d8b3e Isaku Yamahata
 * Copyright (C) 2012 Jason Baron <jbaron@redhat.com>
9 df2d8b3e Isaku Yamahata
 *
10 df2d8b3e Isaku Yamahata
 * This is based on pc.c, but heavily modified.
11 df2d8b3e Isaku Yamahata
 *
12 df2d8b3e Isaku Yamahata
 * Permission is hereby granted, free of charge, to any person obtaining a copy
13 df2d8b3e Isaku Yamahata
 * of this software and associated documentation files (the "Software"), to deal
14 df2d8b3e Isaku Yamahata
 * in the Software without restriction, including without limitation the rights
15 df2d8b3e Isaku Yamahata
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16 df2d8b3e Isaku Yamahata
 * copies of the Software, and to permit persons to whom the Software is
17 df2d8b3e Isaku Yamahata
 * furnished to do so, subject to the following conditions:
18 df2d8b3e Isaku Yamahata
 *
19 df2d8b3e Isaku Yamahata
 * The above copyright notice and this permission notice shall be included in
20 df2d8b3e Isaku Yamahata
 * all copies or substantial portions of the Software.
21 df2d8b3e Isaku Yamahata
 *
22 df2d8b3e Isaku Yamahata
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 df2d8b3e Isaku Yamahata
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 df2d8b3e Isaku Yamahata
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 df2d8b3e Isaku Yamahata
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 df2d8b3e Isaku Yamahata
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27 df2d8b3e Isaku Yamahata
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 df2d8b3e Isaku Yamahata
 * THE SOFTWARE.
29 df2d8b3e Isaku Yamahata
 */
30 83c9f4ca Paolo Bonzini
#include "hw/hw.h"
31 04920fc0 Michael S. Tsirkin
#include "hw/loader.h"
32 9c17d615 Paolo Bonzini
#include "sysemu/arch_init.h"
33 0d09e41a Paolo Bonzini
#include "hw/i2c/smbus.h"
34 83c9f4ca Paolo Bonzini
#include "hw/boards.h"
35 0d09e41a Paolo Bonzini
#include "hw/timer/mc146818rtc.h"
36 0d09e41a Paolo Bonzini
#include "hw/xen/xen.h"
37 9c17d615 Paolo Bonzini
#include "sysemu/kvm.h"
38 83c9f4ca Paolo Bonzini
#include "hw/kvm/clock.h"
39 0d09e41a Paolo Bonzini
#include "hw/pci-host/q35.h"
40 022c62cb Paolo Bonzini
#include "exec/address-spaces.h"
41 0d09e41a Paolo Bonzini
#include "hw/i386/ich9.h"
42 df2d8b3e Isaku Yamahata
#include "hw/ide/pci.h"
43 df2d8b3e Isaku Yamahata
#include "hw/ide/ahci.h"
44 df2d8b3e Isaku Yamahata
#include "hw/usb.h"
45 f0513d2c Igor Mammedov
#include "hw/cpu/icc_bus.h"
46 df2d8b3e Isaku Yamahata
47 df2d8b3e Isaku Yamahata
/* ICH9 AHCI has 6 ports */
48 df2d8b3e Isaku Yamahata
#define MAX_SATA_PORTS     6
49 df2d8b3e Isaku Yamahata
50 7f3e341a Marcel Apfelbaum
static bool has_pvpanic;
51 f8c457b8 Michael S. Tsirkin
static bool has_pci_info = true;
52 3ab135f3 Hu Tao
53 df2d8b3e Isaku Yamahata
/* PC hardware initialisation */
54 df2d8b3e Isaku Yamahata
static void pc_q35_init(QEMUMachineInitArgs *args)
55 df2d8b3e Isaku Yamahata
{
56 df2d8b3e Isaku Yamahata
    ram_addr_t below_4g_mem_size, above_4g_mem_size;
57 df2d8b3e Isaku Yamahata
    Q35PCIHost *q35_host;
58 ce88812f Hu Tao
    PCIHostState *phb;
59 df2d8b3e Isaku Yamahata
    PCIBus *host_bus;
60 df2d8b3e Isaku Yamahata
    PCIDevice *lpc;
61 df2d8b3e Isaku Yamahata
    BusState *idebus[MAX_SATA_PORTS];
62 df2d8b3e Isaku Yamahata
    ISADevice *rtc_state;
63 df2d8b3e Isaku Yamahata
    ISADevice *floppy;
64 df2d8b3e Isaku Yamahata
    MemoryRegion *pci_memory;
65 df2d8b3e Isaku Yamahata
    MemoryRegion *rom_memory;
66 df2d8b3e Isaku Yamahata
    MemoryRegion *ram_memory;
67 df2d8b3e Isaku Yamahata
    GSIState *gsi_state;
68 df2d8b3e Isaku Yamahata
    ISABus *isa_bus;
69 df2d8b3e Isaku Yamahata
    int pci_enabled = 1;
70 df2d8b3e Isaku Yamahata
    qemu_irq *cpu_irq;
71 df2d8b3e Isaku Yamahata
    qemu_irq *gsi;
72 df2d8b3e Isaku Yamahata
    qemu_irq *i8259;
73 df2d8b3e Isaku Yamahata
    int i;
74 df2d8b3e Isaku Yamahata
    ICH9LPCState *ich9_lpc;
75 df2d8b3e Isaku Yamahata
    PCIDevice *ahci;
76 f0513d2c Igor Mammedov
    DeviceState *icc_bridge;
77 3459a625 Michael S. Tsirkin
    PcGuestInfo *guest_info;
78 f0513d2c Igor Mammedov
79 254c1282 Anthony PERARD
    if (xen_enabled() && xen_hvm_init(&ram_memory) != 0) {
80 254c1282 Anthony PERARD
        fprintf(stderr, "xen hardware virtual machine initialisation failed\n");
81 254c1282 Anthony PERARD
        exit(1);
82 254c1282 Anthony PERARD
    }
83 254c1282 Anthony PERARD
84 f0513d2c Igor Mammedov
    icc_bridge = qdev_create(NULL, TYPE_ICC_BRIDGE);
85 f0513d2c Igor Mammedov
    object_property_add_child(qdev_get_machine(), "icc-bridge",
86 f0513d2c Igor Mammedov
                              OBJECT(icc_bridge), NULL);
87 df2d8b3e Isaku Yamahata
88 3b6fb9ca Markus Armbruster
    pc_cpus_init(args->cpu_model, icc_bridge);
89 f7e4dd6c Gerd Hoffmann
    pc_acpi_init("q35-acpi-dsdt.aml");
90 df2d8b3e Isaku Yamahata
91 21022c92 Jan Kiszka
    kvmclock_create();
92 21022c92 Jan Kiszka
93 3b6fb9ca Markus Armbruster
    if (args->ram_size >= 0xb0000000) {
94 3b6fb9ca Markus Armbruster
        above_4g_mem_size = args->ram_size - 0xb0000000;
95 df2d8b3e Isaku Yamahata
        below_4g_mem_size = 0xb0000000;
96 df2d8b3e Isaku Yamahata
    } else {
97 df2d8b3e Isaku Yamahata
        above_4g_mem_size = 0;
98 3b6fb9ca Markus Armbruster
        below_4g_mem_size = args->ram_size;
99 df2d8b3e Isaku Yamahata
    }
100 df2d8b3e Isaku Yamahata
101 df2d8b3e Isaku Yamahata
    /* pci enabled */
102 df2d8b3e Isaku Yamahata
    if (pci_enabled) {
103 df2d8b3e Isaku Yamahata
        pci_memory = g_new(MemoryRegion, 1);
104 2c9b15ca Paolo Bonzini
        memory_region_init(pci_memory, NULL, "pci", INT64_MAX);
105 df2d8b3e Isaku Yamahata
        rom_memory = pci_memory;
106 df2d8b3e Isaku Yamahata
    } else {
107 df2d8b3e Isaku Yamahata
        pci_memory = NULL;
108 df2d8b3e Isaku Yamahata
        rom_memory = get_system_memory();
109 df2d8b3e Isaku Yamahata
    }
110 df2d8b3e Isaku Yamahata
111 3459a625 Michael S. Tsirkin
    guest_info = pc_guest_info_init(below_4g_mem_size, above_4g_mem_size);
112 f8c457b8 Michael S. Tsirkin
    guest_info->has_pci_info = has_pci_info;
113 6dd2a5c9 Paolo Bonzini
    guest_info->isapc_ram_fw = false;
114 3459a625 Michael S. Tsirkin
115 df2d8b3e Isaku Yamahata
    /* allocate ram and load rom/bios */
116 df2d8b3e Isaku Yamahata
    if (!xen_enabled()) {
117 3b6fb9ca Markus Armbruster
        pc_memory_init(get_system_memory(),
118 3b6fb9ca Markus Armbruster
                       args->kernel_filename, args->kernel_cmdline,
119 3b6fb9ca Markus Armbruster
                       args->initrd_filename,
120 3b6fb9ca Markus Armbruster
                       below_4g_mem_size, above_4g_mem_size,
121 3459a625 Michael S. Tsirkin
                       rom_memory, &ram_memory, guest_info);
122 df2d8b3e Isaku Yamahata
    }
123 df2d8b3e Isaku Yamahata
124 df2d8b3e Isaku Yamahata
    /* irq lines */
125 df2d8b3e Isaku Yamahata
    gsi_state = g_malloc0(sizeof(*gsi_state));
126 df2d8b3e Isaku Yamahata
    if (kvm_irqchip_in_kernel()) {
127 df2d8b3e Isaku Yamahata
        kvm_pc_setup_irq_routing(pci_enabled);
128 df2d8b3e Isaku Yamahata
        gsi = qemu_allocate_irqs(kvm_pc_gsi_handler, gsi_state,
129 df2d8b3e Isaku Yamahata
                                 GSI_NUM_PINS);
130 df2d8b3e Isaku Yamahata
    } else {
131 df2d8b3e Isaku Yamahata
        gsi = qemu_allocate_irqs(gsi_handler, gsi_state, GSI_NUM_PINS);
132 df2d8b3e Isaku Yamahata
    }
133 df2d8b3e Isaku Yamahata
134 df2d8b3e Isaku Yamahata
    /* create pci host bus */
135 df2d8b3e Isaku Yamahata
    q35_host = Q35_HOST_DEVICE(qdev_create(NULL, TYPE_Q35_HOST_DEVICE));
136 df2d8b3e Isaku Yamahata
137 c52dc697 Igor Mammedov
    object_property_add_child(qdev_get_machine(), "q35", OBJECT(q35_host), NULL);
138 df2d8b3e Isaku Yamahata
    q35_host->mch.ram_memory = ram_memory;
139 df2d8b3e Isaku Yamahata
    q35_host->mch.pci_address_space = pci_memory;
140 df2d8b3e Isaku Yamahata
    q35_host->mch.system_memory = get_system_memory();
141 c7e775e4 Dong Xu Wang
    q35_host->mch.address_space_io = get_system_io();
142 df2d8b3e Isaku Yamahata
    q35_host->mch.below_4g_mem_size = below_4g_mem_size;
143 df2d8b3e Isaku Yamahata
    q35_host->mch.above_4g_mem_size = above_4g_mem_size;
144 3459a625 Michael S. Tsirkin
    q35_host->mch.guest_info = guest_info;
145 df2d8b3e Isaku Yamahata
    /* pci */
146 df2d8b3e Isaku Yamahata
    qdev_init_nofail(DEVICE(q35_host));
147 ce88812f Hu Tao
    phb = PCI_HOST_BRIDGE(q35_host);
148 ce88812f Hu Tao
    host_bus = phb->bus;
149 df2d8b3e Isaku Yamahata
    /* create ISA bus */
150 df2d8b3e Isaku Yamahata
    lpc = pci_create_simple_multifunction(host_bus, PCI_DEVFN(ICH9_LPC_DEV,
151 df2d8b3e Isaku Yamahata
                                          ICH9_LPC_FUNC), true,
152 df2d8b3e Isaku Yamahata
                                          TYPE_ICH9_LPC_DEVICE);
153 df2d8b3e Isaku Yamahata
    ich9_lpc = ICH9_LPC_DEVICE(lpc);
154 df2d8b3e Isaku Yamahata
    ich9_lpc->pic = gsi;
155 df2d8b3e Isaku Yamahata
    ich9_lpc->ioapic = gsi_state->ioapic_irq;
156 df2d8b3e Isaku Yamahata
    pci_bus_irqs(host_bus, ich9_lpc_set_irq, ich9_lpc_map_irq, ich9_lpc,
157 df2d8b3e Isaku Yamahata
                 ICH9_LPC_NB_PIRQS);
158 91c3f2f0 Jason Baron
    pci_bus_set_route_irq_fn(host_bus, ich9_route_intx_pin_to_irq);
159 df2d8b3e Isaku Yamahata
    isa_bus = ich9_lpc->isa_bus;
160 df2d8b3e Isaku Yamahata
161 df2d8b3e Isaku Yamahata
    /*end early*/
162 df2d8b3e Isaku Yamahata
    isa_bus_irqs(isa_bus, gsi);
163 df2d8b3e Isaku Yamahata
164 df2d8b3e Isaku Yamahata
    if (kvm_irqchip_in_kernel()) {
165 df2d8b3e Isaku Yamahata
        i8259 = kvm_i8259_init(isa_bus);
166 df2d8b3e Isaku Yamahata
    } else if (xen_enabled()) {
167 df2d8b3e Isaku Yamahata
        i8259 = xen_interrupt_controller_init();
168 df2d8b3e Isaku Yamahata
    } else {
169 df2d8b3e Isaku Yamahata
        cpu_irq = pc_allocate_cpu_irq();
170 df2d8b3e Isaku Yamahata
        i8259 = i8259_init(isa_bus, cpu_irq[0]);
171 df2d8b3e Isaku Yamahata
    }
172 df2d8b3e Isaku Yamahata
173 df2d8b3e Isaku Yamahata
    for (i = 0; i < ISA_NUM_IRQS; i++) {
174 df2d8b3e Isaku Yamahata
        gsi_state->i8259_irq[i] = i8259[i];
175 df2d8b3e Isaku Yamahata
    }
176 df2d8b3e Isaku Yamahata
    if (pci_enabled) {
177 df2d8b3e Isaku Yamahata
        ioapic_init_gsi(gsi_state, NULL);
178 df2d8b3e Isaku Yamahata
    }
179 f0513d2c Igor Mammedov
    qdev_init_nofail(icc_bridge);
180 df2d8b3e Isaku Yamahata
181 df2d8b3e Isaku Yamahata
    pc_register_ferr_irq(gsi[13]);
182 df2d8b3e Isaku Yamahata
183 df2d8b3e Isaku Yamahata
    /* init basic PC hardware */
184 df2d8b3e Isaku Yamahata
    pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy, false);
185 df2d8b3e Isaku Yamahata
186 df2d8b3e Isaku Yamahata
    /* connect pm stuff to lpc */
187 a3ac6b53 Hu Tao
    ich9_lpc_pm_init(lpc);
188 df2d8b3e Isaku Yamahata
189 df2d8b3e Isaku Yamahata
    /* ahci and SATA device, for q35 1 ahci controller is built-in */
190 df2d8b3e Isaku Yamahata
    ahci = pci_create_simple_multifunction(host_bus,
191 df2d8b3e Isaku Yamahata
                                           PCI_DEVFN(ICH9_SATA1_DEV,
192 df2d8b3e Isaku Yamahata
                                                     ICH9_SATA1_FUNC),
193 df2d8b3e Isaku Yamahata
                                           true, "ich9-ahci");
194 df2d8b3e Isaku Yamahata
    idebus[0] = qdev_get_child_bus(&ahci->qdev, "ide.0");
195 df2d8b3e Isaku Yamahata
    idebus[1] = qdev_get_child_bus(&ahci->qdev, "ide.1");
196 df2d8b3e Isaku Yamahata
197 df2d8b3e Isaku Yamahata
    if (usb_enabled(false)) {
198 df2d8b3e Isaku Yamahata
        /* Should we create 6 UHCI according to ich9 spec? */
199 df2d8b3e Isaku Yamahata
        ehci_create_ich9_with_companions(host_bus, 0x1d);
200 df2d8b3e Isaku Yamahata
    }
201 df2d8b3e Isaku Yamahata
202 df2d8b3e Isaku Yamahata
    /* TODO: Populate SPD eeprom data.  */
203 df2d8b3e Isaku Yamahata
    smbus_eeprom_init(ich9_smb_init(host_bus,
204 df2d8b3e Isaku Yamahata
                                    PCI_DEVFN(ICH9_SMB_DEV, ICH9_SMB_FUNC),
205 df2d8b3e Isaku Yamahata
                                    0xb100),
206 df2d8b3e Isaku Yamahata
                      8, NULL, 0);
207 df2d8b3e Isaku Yamahata
208 c1654732 Markus Armbruster
    pc_cmos_init(below_4g_mem_size, above_4g_mem_size, args->boot_order,
209 df2d8b3e Isaku Yamahata
                 floppy, idebus[0], idebus[1], rtc_state);
210 df2d8b3e Isaku Yamahata
211 df2d8b3e Isaku Yamahata
    /* the rest devices to which pci devfn is automatically assigned */
212 df2d8b3e Isaku Yamahata
    pc_vga_init(isa_bus, host_bus);
213 df2d8b3e Isaku Yamahata
    pc_nic_init(isa_bus, host_bus);
214 df2d8b3e Isaku Yamahata
    if (pci_enabled) {
215 df2d8b3e Isaku Yamahata
        pc_pci_device_init(host_bus);
216 df2d8b3e Isaku Yamahata
    }
217 3ab135f3 Hu Tao
218 3ab135f3 Hu Tao
    if (has_pvpanic) {
219 3ab135f3 Hu Tao
        pvpanic_init(isa_bus);
220 3ab135f3 Hu Tao
    }
221 df2d8b3e Isaku Yamahata
}
222 df2d8b3e Isaku Yamahata
223 89b439f3 Eduardo Habkost
static void pc_compat_1_6(QEMUMachineInitArgs *args)
224 f8c457b8 Michael S. Tsirkin
{
225 f8c457b8 Michael S. Tsirkin
    has_pci_info = false;
226 04920fc0 Michael S. Tsirkin
    rom_file_in_ram = false;
227 f8c457b8 Michael S. Tsirkin
}
228 f8c457b8 Michael S. Tsirkin
229 89b439f3 Eduardo Habkost
static void pc_compat_1_5(QEMUMachineInitArgs *args)
230 9604f70f Michael S. Tsirkin
{
231 89b439f3 Eduardo Habkost
    pc_compat_1_6(args);
232 02653c5e Anthony Liguori
    has_pvpanic = true;
233 9604f70f Michael S. Tsirkin
}
234 9604f70f Michael S. Tsirkin
235 89b439f3 Eduardo Habkost
static void pc_compat_1_4(QEMUMachineInitArgs *args)
236 9953f882 Markus Armbruster
{
237 396f79f4 Eduardo Habkost
    pc_compat_1_5(args);
238 396f79f4 Eduardo Habkost
    has_pvpanic = false;
239 4458c236 Borislav Petkov
    x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
240 56383703 Eduardo Habkost
    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
241 89b439f3 Eduardo Habkost
}
242 89b439f3 Eduardo Habkost
243 89b439f3 Eduardo Habkost
static void pc_q35_init_1_6(QEMUMachineInitArgs *args)
244 89b439f3 Eduardo Habkost
{
245 89b439f3 Eduardo Habkost
    pc_compat_1_6(args);
246 89b439f3 Eduardo Habkost
    pc_q35_init(args);
247 89b439f3 Eduardo Habkost
}
248 89b439f3 Eduardo Habkost
249 89b439f3 Eduardo Habkost
static void pc_q35_init_1_5(QEMUMachineInitArgs *args)
250 89b439f3 Eduardo Habkost
{
251 89b439f3 Eduardo Habkost
    pc_compat_1_5(args);
252 89b439f3 Eduardo Habkost
    pc_q35_init(args);
253 89b439f3 Eduardo Habkost
}
254 89b439f3 Eduardo Habkost
255 89b439f3 Eduardo Habkost
static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
256 89b439f3 Eduardo Habkost
{
257 89b439f3 Eduardo Habkost
    pc_compat_1_4(args);
258 89b439f3 Eduardo Habkost
    pc_q35_init(args);
259 9953f882 Markus Armbruster
}
260 9953f882 Markus Armbruster
261 a0dba644 Michael S. Tsirkin
#define PC_Q35_MACHINE_OPTIONS \
262 a0dba644 Michael S. Tsirkin
    PC_DEFAULT_MACHINE_OPTIONS, \
263 a0dba644 Michael S. Tsirkin
    .desc = "Standard PC (Q35 + ICH9, 2009)", \
264 a0dba644 Michael S. Tsirkin
    .hot_add_cpu = pc_hot_add_cpu
265 a0dba644 Michael S. Tsirkin
266 a0dba644 Michael S. Tsirkin
#define PC_Q35_1_6_MACHINE_OPTIONS PC_Q35_MACHINE_OPTIONS
267 a0dba644 Michael S. Tsirkin
268 45053fde Eduardo Habkost
static QEMUMachine pc_q35_machine_v1_6 = {
269 a0dba644 Michael S. Tsirkin
    PC_Q35_1_6_MACHINE_OPTIONS,
270 45053fde Eduardo Habkost
    .name = "pc-q35-1.6",
271 45053fde Eduardo Habkost
    .alias = "q35",
272 9604f70f Michael S. Tsirkin
    .init = pc_q35_init_1_6,
273 45053fde Eduardo Habkost
};
274 45053fde Eduardo Habkost
275 bf3caa3d Paolo Bonzini
static QEMUMachine pc_q35_machine_v1_5 = {
276 a0dba644 Michael S. Tsirkin
    PC_Q35_1_6_MACHINE_OPTIONS,
277 bf3caa3d Paolo Bonzini
    .name = "pc-q35-1.5",
278 f8c457b8 Michael S. Tsirkin
    .init = pc_q35_init_1_5,
279 ffce9ebb Eduardo Habkost
    .compat_props = (GlobalProperty[]) {
280 ffce9ebb Eduardo Habkost
        PC_COMPAT_1_5,
281 ffce9ebb Eduardo Habkost
        { /* end of list */ }
282 ffce9ebb Eduardo Habkost
    },
283 df2d8b3e Isaku Yamahata
};
284 df2d8b3e Isaku Yamahata
285 a0dba644 Michael S. Tsirkin
#define PC_Q35_1_4_MACHINE_OPTIONS \
286 a0dba644 Michael S. Tsirkin
    PC_Q35_1_6_MACHINE_OPTIONS, \
287 a0dba644 Michael S. Tsirkin
    .hot_add_cpu = NULL
288 a0dba644 Michael S. Tsirkin
289 bf3caa3d Paolo Bonzini
static QEMUMachine pc_q35_machine_v1_4 = {
290 a0dba644 Michael S. Tsirkin
    PC_Q35_1_4_MACHINE_OPTIONS,
291 bf3caa3d Paolo Bonzini
    .name = "pc-q35-1.4",
292 9953f882 Markus Armbruster
    .init = pc_q35_init_1_4,
293 bf3caa3d Paolo Bonzini
    .compat_props = (GlobalProperty[]) {
294 bf3caa3d Paolo Bonzini
        PC_COMPAT_1_4,
295 bf3caa3d Paolo Bonzini
        { /* end of list */ }
296 bf3caa3d Paolo Bonzini
    },
297 bf3caa3d Paolo Bonzini
};
298 bf3caa3d Paolo Bonzini
299 df2d8b3e Isaku Yamahata
static void pc_q35_machine_init(void)
300 df2d8b3e Isaku Yamahata
{
301 45053fde Eduardo Habkost
    qemu_register_machine(&pc_q35_machine_v1_6);
302 bf3caa3d Paolo Bonzini
    qemu_register_machine(&pc_q35_machine_v1_5);
303 bf3caa3d Paolo Bonzini
    qemu_register_machine(&pc_q35_machine_v1_4);
304 df2d8b3e Isaku Yamahata
}
305 df2d8b3e Isaku Yamahata
306 df2d8b3e Isaku Yamahata
machine_init(pc_q35_machine_init);