From: Avi Kivity <avi@redhat.com>
To: Carsten Otte <cotte@de.ibm.com>
Cc: Marcelo Tossati <mtosatti@redhat.com>,
borntrae@linux.vnet.ibm.com, heicars2@linux.vnet.ibm.com,
mschwid2@linux.vnet.ibm.com, huckc@linux.vnet.ibm.com,
KVM <kvm@vger.kernel.org>
Subject: Re: [patch 2/2] [PATCH] kvm-s390: pseudo page fault support
Date: Thu, 17 Nov 2011 16:18:19 +0200 [thread overview]
Message-ID: <4EC517AB.4070300@redhat.com> (raw)
In-Reply-To: <4EC50E5F.6040202@de.ibm.com>
On 11/17/2011 03:38 PM, Carsten Otte wrote:
>
>>> + init = kzalloc(sizeof(*init), GFP_ATOMIC);
>>> + if (!init)
>>> + return;
>>> +
>>> + done = kzalloc(sizeof(*done), GFP_ATOMIC);
>>> + if (!done)
>>> + goto out_init;
>>> +
>>> + event = kzalloc(sizeof(*event), GFP_ATOMIC);
>>> + if (!event)
>>> + goto out_done;
>>
>> Three allocs? Maybe combine them? Even if their lifetimes are not
>> exactly the same.
> The interrupt stack frees the interrupt info types for done and
> init in context of the target vcpu thread when delivering. Thus,
> as far as I can see, these cannot be easily converged.
I mean, if delivery is always the last thing that happens, just do a
single free there.
>> Is this duplicating virt/kvm/async_pf.c?
> We intend to be able to backport this to 2.6.32 for RHEL6. async_pf.c
> relies on asynchonous work items which is not available on RHEL6. Thus
> we decided to go forward with our own implementation first, and move
> towards an aproach similar to async_pf.c as soon as we find time for
> it. I think in the end both pathes can and should be converged. The
> implementation in async_pf.c clearly has advantages over this approach.
Backports to distros, even if you happened to name my favourite, do not
override upstream considerations. "as soon as we find time" doesn't
inspire confidence either. If async_pf.c is better, let's do that (btw
async_pf.c did not find itself in generic code by accident).
(for the backport, I imagine it will be possible to backport async_pf.c)
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-11-17 14:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 11:19 [patch 0/2] kvm-s390: asnychronous page faults Carsten Otte
2011-11-17 11:19 ` [patch 1/2] [PATCH] kvm: nowait retry for asynchronous " Carsten Otte
2011-11-17 11:19 ` [patch 2/2] [PATCH] kvm-s390: pseudo page fault support Carsten Otte
2011-11-17 13:18 ` Avi Kivity
2011-11-17 13:38 ` Carsten Otte
2011-11-17 14:18 ` Avi Kivity [this message]
2011-11-17 14:50 ` Carsten Otte
2011-11-17 15:13 ` Christian Borntraeger
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=4EC517AB.4070300@redhat.com \
--to=avi@redhat.com \
--cc=borntrae@linux.vnet.ibm.com \
--cc=cotte@de.ibm.com \
--cc=heicars2@linux.vnet.ibm.com \
--cc=huckc@linux.vnet.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=mschwid2@linux.vnet.ibm.com \
--cc=mtosatti@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.