On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell <peter.maydell@linaro.org> wrote:On 24 November 2011 20:11, Christoffer Dall <cdall@cs.columbia.edu> wrote:
I would like some clarity (if possible) of which branch the KVMsupport for ARM should be based on. Is it the Linaro version of QEMUand basically just keep rebasing the changes off there until someoneaccepts them or?What would be helpful from the point of view of KVM is to have basicARM host support and the A15 system model upstream.My plan here was that the bits like A15 system model which areclearly upstreamable I would push directly upstream (and just keepin qemu-linaro for the typically week-or-three things take togo through upstream patch review). For the KVM support patch itself,my thought was simply to carry that in qemu-linaro as an "unsupportedwork in progress" patch until we think it's ready to commit upstream.[I'm suggesting qemu-linaro here mostly because it's convenient tome: it's a tree I already maintain and track upstream trunk with.If that would be awkward for other people we can do something else.]Pretty high up my todo list was rebasing your kvm patch on tomaster / qemu-linaro (the two are more or less the same for thispurpose).
if you could take charge on that it would be awesome from my point of
view. I will send you a (slightly) cleaned up patch that you can use
or throw away.
Currently there are a number of changes to the configure script tomake things work and we link against a prebuilt zlib library that wekeep distributing to people who wish to build QEMU for KVM/ARM.I have some instructions for Ubuntu oneiric hosts that work byusing the stock oneiric ARM zlib (installed via dpkg-cross):see the section at the bottom ofhttps://wiki.linaro.org/PeterMaydell/A15OnFastModels(that's "how to cross build upstream qemu master", not your qemuwith the kvm patch.)You'll find that when we update to QEMU 1.0 you'll also need across version of the glib/gthread libraries, which may make youmore reluctant to stick to the "hand out prebuilt cross library"approach.
I'm already reluctant, so I'm happy to hear there will be some
"official" instructions available. I actually think it's important for
the adoption of KVM that things are somewhat possible to build without
too much jumping through hoops. A remaining item is to test this setup
with the KVM stuff, but it should be a minor thing as long as the
kernel headers for KVM/ARM can be integrated with the build process
somehow. (Or is there an alternative?).