[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 3/3] x86/shadow: emulate_gva_to_mfn() should respect p2m_ioreq_server
> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@xxxxxxxx] > Sent: 15 November 2018 12:52 > To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx> > Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Paul Durrant > <Paul.Durrant@xxxxxxxxxx>; Roger Pau Monne <roger.pau@xxxxxxxxxx>; Wei Liu > <wei.liu2@xxxxxxxxxx>; Tim (Xen.org) <tim@xxxxxxx> > Subject: [PATCH v2 3/3] x86/shadow: emulate_gva_to_mfn() should respect > p2m_ioreq_server > > Writes to such pages need to be handed to the emulator. > > Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Paul Durrant <paul.durrant@xxxxxxxxxx> > --- > v2: Return BAD_GFN_TO_MFN instead. > > --- a/xen/arch/x86/mm/shadow/hvm.c > +++ b/xen/arch/x86/mm/shadow/hvm.c > @@ -338,6 +338,11 @@ static mfn_t emulate_gva_to_mfn(struct v > { > return _mfn(BAD_GFN_TO_MFN); > } > + if ( p2mt == p2m_ioreq_server ) > + { > + put_page(page); > + return _mfn(BAD_GFN_TO_MFN); > + } > if ( p2m_is_discard_write(p2mt) ) > { > put_page(page); > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |