[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC V4 1/5] xen: Emulate with no writes



At 09:50 +0100 on 06 Aug (1407315030), Jan Beulich wrote:
> >>> On 06.08.14 at 10:42, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
> > On 08/05/2014 06:43 PM, Jan Beulich wrote:
> >> it. And quite different from your case - you want the instruction to
> >> behave normally _except_ for the memory write as I understood so far
> >> (albeit it still escapes me how in the end correct behavior can result).
> > 
> > The scenario in such cases is quite special: the decision to emulate
> > without writing is usually made for things such as rootkits, and
> > allowing a rogue application to go ahead with a write generally means
> > allowing it to do bad things - so in that case the alternative is
> > preferable.
> 
> In which case dropping the side effects of such instructions may
> well be the right thing too, in which case the trivial implementations
> you provided would be okay, but you'd have to go further and also
> disallow port and MMIO reads.

+1.

A related point - you might want to emulate ther read and test parts
of cmpxchg (but OTOH the sorts of things that CMPXCHG is used for are
likely to misbehave badly with the write discarded anyway.)

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.