Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-29 Thread Christoffer Dall
On Tue, Nov 29, 2011 at 1:16 PM, Peter Maydell wrote: > On 24 November 2011 23:06, Peter Maydell wrote: >> On 24 November 2011 22:02, Christoffer Dall wrote: >>> On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell >>> wrote: Pretty high up my todo list was rebasing your kvm patch on to ma

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-29 Thread Peter Maydell
On 24 November 2011 23:06, Peter Maydell wrote: > On 24 November 2011 22:02, Christoffer Dall wrote: >> On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell >> wrote: >>> Pretty high up my todo list was rebasing your kvm patch on to >>> master / qemu-linaro (the two are more or less the same for this

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-28 Thread Scott Wood
On 11/24/2011 03:27 PM, Peter Maydell wrote: > If it doesn't make sense to hand off cp15 accesses that's fine, > though -- I want to do this refactoring for the A15 system mode > implementation in qemu anyway, because I really don't think we > should try to shoehorn in yet another cpu implementatio

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Christoffer Dall
[snip] >> 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?). > > Ah, kernel headers, good point. QEMU now carries the KVM kerne

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Alexander Graf
On 25.11.2011, at 00:11, Peter Maydell wrote: > On 24 November 2011 23:10, Alexander Graf wrote: >> On 25.11.2011, at 00:06, Peter Maydell wrote: >>> Well, once we've got real hardware it'll be more straightforward >>> because building QEMU on the hardware won't be quite so slow... >>> Most of t

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Peter Maydell
On 24 November 2011 23:10, Alexander Graf wrote: > On 25.11.2011, at 00:06, Peter Maydell wrote: >> Well, once we've got real hardware it'll be more straightforward >> because building QEMU on the hardware won't be quite so slow... >> Most of this is just because crosscompiling is and remains pain

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Alexander Graf
On 25.11.2011, at 00:06, Peter Maydell wrote: > On 24 November 2011 22:02, Christoffer Dall wrote: >> On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell >> wrote: >>> Pretty high up my todo list was rebasing your kvm patch on to >>> master / qemu-linaro (the two are more or less the same for this

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Alexander Graf
On 24.11.2011, at 23:02, Christoffer Dall wrote: > On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell > wrote: >> On 24 November 2011 20:11, Christoffer Dall wrote: > [...] >>> I would like some clarity (if possible) of which branch the KVM >>> support for ARM should be based on. Is it the Lina

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Peter Maydell
On 24 November 2011 22:02, Christoffer Dall wrote: > On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell > wrote: >> Pretty high up my todo list was rebasing your kvm patch on to >> master / qemu-linaro (the two are more or less the same for this >> purpose). > > if you could take charge on that it w

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Christoffer Dall
On Thu, Nov 24, 2011 at 4:27 PM, Peter Maydell wrote: > On 24 November 2011 20:11, Christoffer Dall wrote: >>> This isn't strictly a requirement for KVM, but we're going to want >>> KVM to be able to hand off cp15 accesses to QEMU, and I don't think >>> that's going to be maintainable or reliable

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Peter Maydell
On 24 November 2011 20:11, Christoffer Dall wrote: >> This isn't strictly a requirement for KVM, but we're going to want >> KVM to be able to hand off cp15 accesses to QEMU, and I don't think >> that's going to be maintainable or reliable without this refactoring. > > Why do we need KVM to hand of

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-24 Thread Christoffer Dall
> > This isn't strictly a requirement for KVM, but we're going to want > KVM to be able to hand off cp15 accesses to QEMU, and I don't think > that's going to be maintainable or reliable without this refactoring. Why do we need KVM to hand off cp15 accesses to QEMU? As of now almost all of this is

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-23 Thread Peter Maydell
On 23 November 2011 08:45, Paolo Bonzini wrote: > On 11/22/2011 04:19 PM, Peter Maydell wrote: >>  * the MAP_FIXED static codegen buffer is put at an address which overlaps >>   the glibc heap so we crash about 50% of the time > > For 1.1 we can just use USE_STATIC_CODE_GEN_BUFFER.  It should not

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-23 Thread Paolo Bonzini
On 11/22/2011 04:19 PM, Peter Maydell wrote: * coroutine implementation doesn't cope if libc provides a makecontext() that returns ENOSYS (so we abort on startup) I have a patch that replaces makecontext() with sigaltstack(), i.e. going from nice code that does not work to hideous code t

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-22 Thread Peter Maydell
On 22 November 2011 15:05, Alexander Graf wrote: > On 22.11.2011, at 15:44, Peter Maydell wrote: >> We're aiming for a reasonable working prototype of A15 guest on >> an A15 Fast Model host here; we need to fix at least some of >> the bugs which currently mean upstream QEMU doesn't work on ARM ho

Re: [Qemu-devel] [Android-virt] plans for QEMU support for KVM on ARM

2011-11-22 Thread Alexander Graf
On 22.11.2011, at 15:44, Peter Maydell wrote: > This email is just a quick summary of what we (Linaro) are > planning in the way of QEMU work to support KVM on ARM Cortex-A15. > The idea is to let people know what's coming up, find out if we've > forgotten anything, and avoid people duplicating