null-machine.c 637 B

1234567891011121314151617181920212223242526272829303132333435
  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. };
  25. static void register_machines(void)
  26. {
  27. qemu_register_machine(&machine_none);
  28. }
  29. machine_init(register_machines);