From: George Dunlap <George.Dunlap@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Kevin Tian <kevin.tian@intel.com>, Wei Liu <wei.liu2@citrix.com>,
Razvan Cojocaru <rcojocaru@bitdefender.com>,
Andrew Cooper <Andrew.Cooper3@citrix.com>,
George Dunlap <George.Dunlap@citrix.com>,
Jun Nakajima <jun.nakajima@intel.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH V7 3/5] x86/altp2m: fix display frozen when switching to a new view early
Date: Tue, 20 Nov 2018 09:43:31 +0000 [thread overview]
Message-ID: <36228A8C-086E-4A48-AF13-9E9EFE23555C@citrix.com> (raw)
In-Reply-To: <5BF3CFF802000078001FDD90@prv1-mh.provo.novell.com>
> On Nov 20, 2018, at 9:12 AM, Jan Beulich <JBeulich@suse.com> wrote:
>
>>>> On 19.11.18 at 18:26, <rcojocaru@bitdefender.com> wrote:
>> When an new altp2m view is created very early on guest boot, the
>> display will freeze (although the guest will run normally). This
>> may also happen on resizing the display. The reason is the way
>> Xen currently (mis)handles logdirty VGA: it intentionally
>> misconfigures VGA pages so that they will fault.
>>
>> The problem is that it only does this in the host p2m. Once we
>> switch to a new altp2m, the misconfigured entries will no longer
>> fault, so the display will not be updated.
>>
>> This patch:
>> * updates ept_handle_misconfig() to use the active altp2m instead
>> of the hostp2m;
>> * modifies p2m_change_entry_type_global(),
>> p2m_memory_type_changed(), p2m_change_type_range() and
>> p2m_finish_type_change() to propagate their changes to all
>> valid altp2ms.
>>
>> With the introduction of altp2m fields in p2m_memory_type_changed()
>> the whole function has been put under CONFIG_HVM.
>>
>> Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
>> Suggested-by: George Dunlap <george.dunlap@citrix.com>
>
> Judging from George's earlier analysis I wonder whether the patch
> ordering is correct: I've got the impression that the patch here should
> be last in the series, for it to be correct and efficient in all cases.
My patches back would require significant rework — both of my patches to rebase on an earlier tree, and of Razvan’s patches to be rebased later. I don’t think this kind of thing should be required unless there is a compelling benefit to doing so.
Normally the reason for such an ordering is “no regressions in the middle of the series”, primarily in order to avoid breaking bisection; and of course there’s also something much more aesthetically satisfying about doing a bunch of prep work behind the scenes and then flipping one switch to enable it at the end of the series.
In this case, altp2m + logdirty was already broken; so I didn’t think this patch could be considered to introduce a regression. Thus the only reason to have this patch be the final patch would be for aesthetic purposes, which I didn’t consider enough value to justify requesting a patch re-ordering.
Did you have a compelling reason in mind for doing the reordering?
-George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-11-20 9:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 17:26 (no subject) Razvan Cojocaru
2018-11-19 17:26 ` [PATCH V7 1/5] x86/mm: introduce p2m_{init, free}_logdirty() Razvan Cojocaru
2018-11-19 17:26 ` [PATCH V7 2/5] x86/mm: allocate logdirty_ranges for altp2ms Razvan Cojocaru
2018-11-20 9:05 ` Jan Beulich
2018-11-20 10:02 ` Razvan Cojocaru
2018-11-20 10:27 ` Jan Beulich
2018-11-20 10:29 ` Razvan Cojocaru
2018-11-19 17:26 ` [PATCH V7 3/5] x86/altp2m: fix display frozen when switching to a new view early Razvan Cojocaru
2018-11-20 9:12 ` Jan Beulich
2018-11-20 9:30 ` Razvan Cojocaru
2018-11-20 9:43 ` George Dunlap [this message]
2018-11-20 10:03 ` Jan Beulich
2018-11-19 17:26 ` [PATCH V7 4/5] p2m: Always use hostp2m when clipping rangesets Razvan Cojocaru
2018-11-19 17:26 ` [PATCH V7 5/5] p2m: change_range_type: Only invalidate mapped gfns Razvan Cojocaru
2018-11-19 17:34 ` (no subject) Razvan Cojocaru
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=36228A8C-086E-4A48-AF13-9E9EFE23555C@citrix.com \
--to=george.dunlap@citrix.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=rcojocaru@bitdefender.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 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).