From: David Vrabel <david.vrabel@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/balloon: don't alloc page while non-preemptible
Date: Wed, 25 Sep 2013 14:58:01 +0100 [thread overview]
Message-ID: <5242EBE9.2030004@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1309251423120.5498@kaball.uk.xensource.com>
On 25/09/13 14:26, Stefano Stabellini wrote:
> On Thu, 19 Sep 2013, David Vrabel wrote:
>>
>> - put_balloon_scratch_page();
>> + /* Ensure that ballooned highmem pages don't have kmaps. */
>> + kmap_flush_unused();
>> + flush_tlb_all();
>
> The change with possible side effects in this patch is that
> kmap_flush_unused and flush_tlb_all are now called after setting the p2m
> and after calling balloon_append instead of before.
>
> However they are still called before the XENMEM_decrease_reservation
> hypercall, so I think it's OK.
Yes, the requirement is that the kmap cache is flushed before releasing
the frame to Xen (in case it contains a kmap for a frame we're about to
release).
I also wonder if the flush_tlb_all() is even necessary. Surely Xen has
all the appropriate TLB flushes in the decrease_reservation hypercall.
It can't possibly rely on the guest doing the right thing.
David
next prev parent reply other threads:[~2013-09-25 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 16:14 [PATCH] xen/balloon: don't alloc page while non-preemptible David Vrabel
2013-09-25 13:26 ` Stefano Stabellini
2013-09-25 13:58 ` David Vrabel [this message]
2013-09-25 15:55 ` Stefano Stabellini
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=5242EBE9.2030004@citrix.com \
--to=david.vrabel@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/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.