>>> On 13.11.18 at 11:34, <paul.durr...@citrix.com> wrote: >> -----Original Message----- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 13 November 2018 10:15 >> To: xen-devel <xen-devel@lists.xenproject.org> >> Cc: Andrew Cooper <andrew.coop...@citrix.com>; Paul Durrant >> <paul.durr...@citrix.com>; Wei Liu <wei.l...@citrix.com> >> Subject: [PATCH 3/3] x86/HVM: hvmemul_cmpxchg() should also use >> known_gla() >> >> To be consistent with the write and rmw cases the mapping approach >> should not be used when the guest linear address translation is known. >> This in particular excludes the discard-write case from bypassing the >> emulation path. This also means that now EFLAGS should actually get >> properly updated, despite the discarded write portion of the memory >> access. >> >> Signed-off-by: Jan Beulich <jbeul...@suse.com> > > Reviewed-by: Paul Durrant <paul.durr...@citrix.com>
Thanks. >> --- >> Without "make hvmemul_map_linear_addr() honor p2m_ioreq_server" this >> also helps the p2m_ioreq_server case. >> >> TBD: While hvmemul_do_io() takes care of p2m_ioreq_server, I don't see >> it taking care of p2m_is_discard_write() types. Am I overlooking >> something? > > If such an access gets to hvmemul_do_io() I would have thought it should > fall through to the null_handler case, which will sink the write. Ah, right - that indeed works without special casing the type(s). Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel