public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Avi Kivity <avi@qumranet.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	Mark McLoughlin <markmc@redhat.com>,
	kvm@vger.kernel.org
Subject: Re: [PATCH 1/5] vring: Replace mmap() interface with ioctl()
Date: Sun, 15 Jun 2008 14:13:36 -0500	[thread overview]
Message-ID: <485569E0.9050109@us.ibm.com> (raw)
In-Reply-To: <4855343E.4020808@qumranet.com>

Avi Kivity wrote:
> Anthony Liguori wrote:
>>>
>>> And also, because memory hotplug and 64-bit PCI BARs require 
>>> reserving an infinite virtual address space range.  Not to mention 
>>> that someone needs to update the dirty bitmap in case we're live 
>>> migrating.
>>
>> You can certainly hotplug to the next RAM address so it doesn't 
>> require infinite space.  
>
> But you need to reserve that space to prevent mallocs from going 
> there.  How much space do you reserve?

It's deterministic at least.  Any physical system has a maximum amount 
of physical memory that it supports so hotplug cannot exceed that amount.

>> You wouldn't send a packet from/to a PCI IO region so I don't think 
>> that practically speaking that's a problem.
>
> If we implement interguest shared memory as a pci device, then it 
> becomes a problem.

We can set an explicit BAR to keep the physical address reasonable.

I'm not arguing that we should enforce base/limit, just that it is 
possible.  I think the burden is to prove that enforcing base/limit 
provides a significant performance boost to warrant the complexity.

The nastiest bit of manipulating the ring in-kernel is that it requires 
TX mitigation to be within the kernel.  This means that adjusting the 
heuristics for adaptive TX mitigation will require host kernel 
modifications which stinks IMHO.

Regards,

Anthony Liguori

      reply	other threads:[~2008-06-15 19:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13 13:57 [PATCH 0/0][RFC] KVM use of vringfd Mark McLoughlin
2008-06-13 13:57 ` [PATCH 1/5] vring: Replace mmap() interface with ioctl() Mark McLoughlin
2008-06-13 13:57   ` [PATCH 2/5] lguest: Use VRINGSETINFO ioctl() instead of mmap() Mark McLoughlin
2008-06-13 13:57     ` [PATCH 3/5] kvm: qemu: Publish last_avail index in the ring Mark McLoughlin
2008-06-13 13:58       ` [PATCH 4/5] kvm: qemu: Use vringfd to eliminate copies Mark McLoughlin
2008-06-13 13:58         ` [PATCH 5/5] kvm: qemu: Add support for partial csums and GSO Mark McLoughlin
2008-06-14 23:28         ` [PATCH 4/5] kvm: qemu: Use vringfd to eliminate copies Anthony Liguori
2008-06-16  2:10           ` Rusty Russell
2008-06-16 14:02             ` Anthony Liguori
2008-06-16 14:58               ` Avi Kivity
2008-06-18  5:43               ` Rusty Russell
2008-06-18 14:01             ` Avi Kivity
2008-06-17 14:08           ` Mark McLoughlin
2008-06-17 14:54             ` Anthony Liguori
2008-06-17 15:45               ` Mark McLoughlin
2008-06-13 14:09   ` [PATCH 1/5] vring: Replace mmap() interface with ioctl() Avi Kivity
2008-06-17 12:19     ` Mark McLoughlin
2008-06-18 14:05       ` Avi Kivity
2008-06-14  9:02   ` Rusty Russell
2008-06-14 14:20     ` Avi Kivity
2008-06-14 23:23       ` Anthony Liguori
2008-06-15 15:24         ` Avi Kivity
2008-06-15 19:13           ` Anthony Liguori [this message]

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=485569E0.9050109@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=avi@qumranet.com \
    --cc=kvm@vger.kernel.org \
    --cc=markmc@redhat.com \
    --cc=rusty@rustcorp.com.au \
    /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