2
0

guest-loader.h 734 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Guest Loader
  3. *
  4. * Copyright (C) 2020 Linaro
  5. * Written by Alex Bennée <alex.bennee@linaro.org>
  6. * (based on the generic-loader by Li Guang <lig.fnst@cn.fujitsu.com>)
  7. *
  8. * SPDX-License-Identifier: GPL-2.0-or-later
  9. *
  10. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  11. * See the COPYING file in the top-level directory.
  12. */
  13. #ifndef GUEST_LOADER_H
  14. #define GUEST_LOADER_H
  15. #include "hw/qdev-core.h"
  16. #include "qom/object.h"
  17. struct GuestLoaderState {
  18. /* <private> */
  19. DeviceState parent_obj;
  20. /* <public> */
  21. uint64_t addr;
  22. char *kernel;
  23. char *args;
  24. char *initrd;
  25. };
  26. #define TYPE_GUEST_LOADER "guest-loader"
  27. OBJECT_DECLARE_SIMPLE_TYPE(GuestLoaderState, GUEST_LOADER)
  28. #endif