From: George Dunlap <george.dunlap@citrix.com>
To: Xiong Zhang <xiong.y.zhang@intel.com>,
JBeulich@suse.com, andrew.cooper3@citrix.com,
paul.durrant@citrix.com, zhiyuan.lv@intel.com,
yu.c.zhang@linux.intel.com
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH V3] x86/ioreq_server: Make p2m_finish_type_change actually work
Date: Wed, 10 May 2017 11:34:01 +0100 [thread overview]
Message-ID: <7358702e-cfde-51fb-601d-f4dcbd8ce370@citrix.com> (raw)
In-Reply-To: <1494457022-5199-1-git-send-email-xiong.y.zhang@intel.com>
On 10/05/17 23:57, Xiong Zhang wrote:
> Commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding
> p2m_ioreq_server entries when an ioreq server unmaps") introduced
> p2m_finish_type_change(), which was meant to synchronously finish a
> previously initiated type change over a gpfn range. It did this by
> calling get_entry(), checking if it was the appropriate type, and then
> calling set_entry().
>
> Unfortunately, a previous commit (1679e0df3df6 "x86/ioreq server:
> asynchronously reset outstanding p2m_ioreq_server entries") modified
> get_entry() to always return the new type after the type change, meaning
> that p2m_finish_type_change() never changed any entries. Which means
> when an ioreq server was detached and then re-attached (as happens in
> XenGT on reboot) the re-attach failed.
>
> Fix this by using the existing p2m-specific recalculation logic instead
> of doing a read-check-write loop.
>
> Fix: 'commit 6d774a951696 ("x86/ioreq server: synchronously reset
> outstanding p2m_ioreq_server entries when an ioreq server unmaps")'
>
> v1: Add ioreq_pre_recalc query flag to get the old p2m_type.(Jan)
> v2: Add p2m->recalc() hook to change gfn p2m_type. (George)
> v3: Make commit message clearer. (George)
These changes should be put like this....
>
> Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
> Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
---
v1: Add ioreq_pre_recalc query flag to get the old p2m_type.(Jan)
v2: Add p2m->recalc() hook to change gfn p2m_type. (George)
v3: Make commit message clearer. (George)
That is, below the S-o-B, you should add a line with '---', and then
after that add any comments that you want to aim at the reviewers (such
as changes between the versions) but not to end up checked into the tree.
This can be fixed up on check-in.
Other than that:
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-05-10 10:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 21:22 [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type Xiong Zhang
2017-05-09 9:44 ` George Dunlap
2017-05-09 10:08 ` Jan Beulich
2017-05-09 10:21 ` George Dunlap
2017-05-09 10:51 ` Jan Beulich
2017-05-09 11:02 ` George Dunlap
2017-05-10 22:57 ` [PATCH V3] x86/ioreq_server: Make p2m_finish_type_change actually work Xiong Zhang
2017-05-10 10:34 ` George Dunlap [this message]
2017-05-10 10:41 ` Jan Beulich
2017-05-12 2:42 ` [PATCH V4] " Xiong Zhang
2017-05-11 11:12 ` Jan Beulich
2017-05-11 17:46 ` Julien Grall
2017-05-13 0:34 ` [PATCH V5] " Xiong Zhang
2017-05-15 13:47 ` George Dunlap
2017-05-17 13:58 ` Julien Grall
2017-05-15 13:46 ` [PATCH V4] " George Dunlap
2017-05-09 10:22 ` [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type Zhang, Xiong Y
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=7358702e-cfde-51fb-601d-f4dcbd8ce370@citrix.com \
--to=george.dunlap@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=paul.durrant@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=xiong.y.zhang@intel.com \
--cc=yu.c.zhang@linux.intel.com \
--cc=zhiyuan.lv@intel.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;
as well as URLs for NNTP newsgroup(s).