From: nathan binkert Subject: Re: [PATCH] KVM: Make kvm header compile under g++. Date: Tue, 7 Apr 2009 09:44:57 -0700 Message-ID: <217accd40904070944p258080a2i8897212b471dd96b@mail.gmail.com> References: <217accd40903272153m650b0f1ata7bc899eb4b92be0@mail.gmail.com> <217accd40904061157r6f35dfe7r58b78678cb0e3aeb@mail.gmail.com> <49DB2805.7040401@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from wa-out-1112.google.com ([209.85.146.181]:36908 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756967AbZDGQpD convert rfc822-to-8bit (ORCPT ); Tue, 7 Apr 2009 12:45:03 -0400 Received: by wa-out-1112.google.com with SMTP id j5so2114403wah.21 for ; Tue, 07 Apr 2009 09:45:02 -0700 (PDT) In-Reply-To: <49DB2805.7040401@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: > No, I just missed your patch. =A0Applied now. =A0Thanks for pestering= , it's the > right thing when I miss something (copying me also helps). Thanks. > btw, can you share what you're doing with kvm and g++? I am a researcher at HP Labs studying system architecture. For many years, I have been involved in a simulator project called M5 (m5sim.org). It shares a lot of things in common with qemu/kvm, except instead of performance as our number one goal, measurement is our number one goal. We model many aspects of computer systems in detail trying to understand how to build future systems. We support a number of architectures and are right now trying to finish x86 support. We want M5 to be able to do everything x86 by itself, but I was looking into the feasibility of using KVM as a fast "CPU" model to help us get workloads running at an interesting point quickly at which point we can switch over to a more detailed CPU model. Since M5 does all of the modeling of memory, devices, and interrupts itself, this really would use just the KVM bits and not use QEMU. We can also use KVM in a single stepping mode to validate the correctness of the simulator itself. My initial playing around with the code looks pretty promising. The only big question mark I have is how to deal with time. I really need the simulator to control what the VCPU understands as the passage of time (think about exactly when interrupts arrive, or exactly how VCPUs advance with respect to each other when they're communicating through shared memory). This has to be done to properly warm up the system. I'm not concerned about whether I can do it at all. I just want to make sure that I maintain the speed of KVM while I do it. Anyway, thanks for your hard work! Nate