2
0

null-machine.c 666 B

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