root / hw / null-machine.c @ 9a6ee9fd
History | View | Annotate | Download (666 Bytes)
1 | b4a738bf | Anthony Liguori | /*
|
---|---|---|---|
2 | b4a738bf | Anthony Liguori | * Empty machine
|
3 | b4a738bf | Anthony Liguori | *
|
4 | b4a738bf | Anthony Liguori | * Copyright IBM, Corp. 2012
|
5 | b4a738bf | Anthony Liguori | *
|
6 | b4a738bf | Anthony Liguori | * Authors:
|
7 | b4a738bf | Anthony Liguori | * Anthony Liguori <aliguori@us.ibm.com>
|
8 | b4a738bf | Anthony Liguori | *
|
9 | b4a738bf | Anthony Liguori | * This work is licensed under the terms of the GNU GPL, version 2 or later.
|
10 | b4a738bf | Anthony Liguori | * See the COPYING file in the top-level directory.
|
11 | b4a738bf | Anthony Liguori | *
|
12 | b4a738bf | Anthony Liguori | */
|
13 | b4a738bf | Anthony Liguori | |
14 | b4a738bf | Anthony Liguori | #include "qemu-common.h" |
15 | b4a738bf | Anthony Liguori | #include "hw/hw.h" |
16 | b4a738bf | Anthony Liguori | #include "hw/boards.h" |
17 | b4a738bf | Anthony Liguori | |
18 | 5f072e1f | Eduardo Habkost | static void machine_none_init(QEMUMachineInitArgs *args) |
19 | b4a738bf | Anthony Liguori | { |
20 | b4a738bf | Anthony Liguori | } |
21 | b4a738bf | Anthony Liguori | |
22 | b4a738bf | Anthony Liguori | static QEMUMachine machine_none = {
|
23 | b4a738bf | Anthony Liguori | .name = "none",
|
24 | b4a738bf | Anthony Liguori | .desc = "empty machine",
|
25 | b4a738bf | Anthony Liguori | .init = machine_none_init, |
26 | b4a738bf | Anthony Liguori | .max_cpus = 0,
|
27 | e4ada29e | Avik Sil | DEFAULT_MACHINE_OPTIONS, |
28 | b4a738bf | Anthony Liguori | }; |
29 | b4a738bf | Anthony Liguori | |
30 | b4a738bf | Anthony Liguori | static void register_machines(void) |
31 | b4a738bf | Anthony Liguori | { |
32 | b4a738bf | Anthony Liguori | qemu_register_machine(&machine_none); |
33 | b4a738bf | Anthony Liguori | } |
34 | b4a738bf | Anthony Liguori | |
35 | b4a738bf | Anthony Liguori | machine_init(register_machines); |