[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1798434] Re: [Feature Request] Automatic device config
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [Bug 1798434] Re: [Feature Request] Automatic device configuration discovery |
Date: |
Wed, 17 Oct 2018 18:44:26 -0000 |
This is occasionally asked for but unfortunately not in the general case
possible. Device trees contain enough information for a guest OS to use
the hardware; they do not contain a full description of how the hardware
is actually configured and connected together, and they don't say
anything about parts of the hardware that are "discoverable" (ie
probeable, like PCI). So there isn't enough information to produce a
full board model, and the parts that correspond to QEMU command line
options (like pluggable devices such as ethernet cards) aren't usually
in the DT at all.
The expected workflow goes the other way around -- you start by picking
a machine type that QEMU models, and then configure the kernel and use
the device tree that is intended for it, in the same way you would if
you wanted to get Linux running on a real hardware board.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1798434
Title:
[Feature Request] Automatic device configuration discovery
Status in QEMU:
New
Bug description:
Would it be possible to have a script that enumerates the device tree
of a Linux host and generates a qemu command line that would recreate
it under emulation? The user would have to customize the arguments
(for instance to point to disk image files), but it would take a lot
of the guesswork out.
Similarly, there could be information that can be gleaned from the
kernel build config that would help with configuration.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1798434/+subscriptions