From: Avi Kivity <avi@redhat.com>
To: Muli Ben-Yehuda <muli@il.ibm.com>
Cc: Eran Borovik <BOROVE@il.ibm.com>,
kvm@vger.kernel.org, Ben-Ami Yassour <BENAMI@il.ibm.com>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [RFC] KVM: Balloon support for device assignment
Date: Sun, 21 Feb 2010 10:53:25 +0200 [thread overview]
Message-ID: <4B80F485.50704@redhat.com> (raw)
In-Reply-To: <20100217175237.GI11999@il.ibm.com>
On 02/17/2010 07:52 PM, Muli Ben-Yehuda wrote:
> On Wed, Feb 17, 2010 at 12:27:09PM +0200, Avi Kivity wrote:
>
>> On 02/17/2010 11:43 AM, borove@il.ibm.com wrote:
>>
>>> From: Eran Borovik<borove@il.ibm.com>
>>>
>>> This patch adds modifications to allow correct
>>> balloon operation when a virtual guest uses a direct assigned device.
>>> The modifications include a new interface between qemu and kvm to allow
>>> mapping and unmapping the pages from the IOMMU as well as pinning and unpinning as needed.
>>>
>> The plan for iommu support is to push it into uio. Instead of kvm
>> managing the iommu directly, I'd like qemu to open a uio device and
>> set up an iommu mapping there, which will just happen to match the
>> kvm memory slots. Similarly, interrupts will be forwarded using
>> irqfds. This will allow using the iommu without kvm, and reduce the
>> amount of special purpose kvm code.
>>
>> These patches make the transition more difficult which worries me.
>>
> That's a fair point, but they also address a real short-coming of the
> current device assignment code, which pins all of the guest's memory
> unconditionally. Unless the uio effort is in progress and expected to
> complete shortly, I would think the benefit of these simple patches
> trumps the cost.
>
I'm not worried about transition cost (that's for whoever makes the
transition to pay) but about how the APIs would translate to the new way
of doing things.
For example, it might be done using mmu notifiers. We might use the
existing madvise(MADV_DONTNEED) as the entry point (though I don't know
how we would indicate deflation).
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-02-21 8:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 9:43 [RFC] Balloon support for device assignment borove
2010-02-17 9:43 ` [RFC] KVM: " borove
2010-02-17 9:43 ` [RFC] QEMU: " borove
2010-02-17 10:28 ` Avi Kivity
2010-02-17 10:27 ` [RFC] KVM: " Avi Kivity
2010-02-17 17:52 ` Muli Ben-Yehuda
2010-02-21 8:53 ` Avi Kivity [this message]
[not found] ` <20100221131732.GC7677@il.ibm.com>
2010-02-21 13:25 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B80F485.50704@redhat.com \
--to=avi@redhat.com \
--cc=BENAMI@il.ibm.com \
--cc=BOROVE@il.ibm.com \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=muli@il.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox