From: Alexander Graf Subject: Re: [PATCH 07/10] Add VMRUN handler v4 Date: Sun, 19 Oct 2008 12:13:17 +0200 Message-ID: <8E4DF3F2-838D-4170-B7DB-7AA00C3B7862@suse.de> References: <1224099093-10985-1-git-send-email-agraf@suse.de> <1224099093-10985-2-git-send-email-agraf@suse.de> <1224099093-10985-3-git-send-email-agraf@suse.de> <1224099093-10985-4-git-send-email-agraf@suse.de> <1224099093-10985-5-git-send-email-agraf@suse.de> <1224099093-10985-6-git-send-email-agraf@suse.de> <1224099093-10985-7-git-send-email-agraf@suse.de> <1224099093-10985-8-git-send-email-agraf@suse.de> <48FB031C.5000602@redhat.com> <48FB06A6.1070600@redhat.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, joro@8bytes.org, anthony@codemonkey.ws, avi@qumranet.com To: Avi Kivity Return-path: Received: from mx1.suse.de ([195.135.220.2]:52364 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750698AbYJSKNU (ORCPT ); Sun, 19 Oct 2008 06:13:20 -0400 In-Reply-To: <48FB06A6.1070600@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 19.10.2008, at 12:06, Avi Kivity wrote: > Alexander Graf wrote: >>>> --- a/arch/x86/kvm/svm.c >>>> +++ b/arch/x86/kvm/svm.c >>>> @@ -51,6 +51,9 @@ MODULE_LICENSE("GPL"); >>>> /* Turn on to get debugging output*/ >>>> /* #define NESTED_DEBUG */ >>>> +/* Not needed until device passthrough */ >>>> +/* #define NESTED_KVM_MERGE_IOPM */ >>>> + >>>> >>> >>> Let's assume device assignment is coming and drop the ifdefs. >> >> Will device assignment work with in-guest IO Passthrough or will it >> rather emulate the IO accesses in userspace by issuing them again? >> > > So far we're talking about reissuing pio. The only case where the > guest and host pio are likely to have the same addresses is the vga > ports, and these aren't heavily used. So it's better to leave it disabled, I guess. The IOPM is only relevant when passing through IO ports 1:1. And parsing the IOPM takes a lot of effort (read: time). It's also only relevant if the same device, the guest is exposed to, is passed through to the l2 guest. IMHO speed is more important atm.