* Re: [Qemu-devel] [PATCH] improve emulation correctness [not found] <535a981f.86a6e00a.7dc9.5f5cSMTPIN_ADDED_BROKEN@mx.google.com> @ 2014-05-02 9:04 ` Stefan Hajnoczi 2014-05-02 9:09 ` Stefan Hajnoczi 1 sibling, 0 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2014-05-02 9:04 UTC (permalink / raw) To: poletaev; +Cc: Paolo Bonzini, qemu-devel, Andreas Faerber, Richard Henderson On Thu, Apr 24, 2014 at 12:35:24PM +0400, poletaev wrote: The commit message is vague so I guess the maintainers skipped your email. I have CCed Paolo, Richard, and Andreas who may be able to review and apply your patch. Please make the commit message more specific: target-i386: don't touch undefined OF flag in RCL instruction That way the relevant people can easily identify it on the mailing list and will review your patch. > There is a set of test, that checks QEMU CPU for similar behavior with real > hardware (http://roberto.greyhats.it/projects/pills.html). Test > reg/pill2579.c can detect, that program is execute in emulated environment. > It is related with behavior of rcl instruction. If the number of shifted > bits more than 1, OF of eflags become undefined. Real CPUs does not change > OF, if it is undefined. QEMU do it anyway. > > Emulated program can execute that test and after that can understand > environment not real. It will always be possible to tell the environment is virtual. There are too many quirks that are very hard to hide - timing, firmware, etc. But I checked the Intel Software Developer's Manual and your patch matches how they document the effect of the RCL instruction. Whether *all* Intel, AMD, VIA, etc x86 CPUs leave the OF flag alone, I'm not sure but I think this patch won't hurt. > Signed-off-by: Dmitry Poletaev <observercool@gmail.com> > > > > diff --git a/target-i386/shift_helper_template.h > b/target-i386/shift_helper_template.h > > index cf91a2d..d5bd321 100644 > > --- a/target-i386/shift_helper_template.h This patch email is broken. Please use git-send-email(1) to send properly formatted patches. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] improve emulation correctness [not found] <535a981f.86a6e00a.7dc9.5f5cSMTPIN_ADDED_BROKEN@mx.google.com> 2014-05-02 9:04 ` [Qemu-devel] [PATCH] improve emulation correctness Stefan Hajnoczi @ 2014-05-02 9:09 ` Stefan Hajnoczi 2014-05-06 12:16 ` poletaev 1 sibling, 1 reply; 3+ messages in thread From: Stefan Hajnoczi @ 2014-05-02 9:09 UTC (permalink / raw) To: poletaev; +Cc: qemu-devel On Thu, Apr 24, 2014 at 12:35:24PM +0400, poletaev wrote: > There is a set of test, that checks QEMU CPU for similar behavior with real > hardware (http://roberto.greyhats.it/projects/pills.html). Test > reg/pill2579.c can detect, that program is execute in emulated environment. > It is related with behavior of rcl instruction. If the number of shifted > bits more than 1, OF of eflags become undefined. Real CPUs does not change > OF, if it is undefined. QEMU do it anyway. > > Emulated program can execute that test and after that can understand > environment not real. > > > > Signed-off-by: Dmitry Poletaev <observercool@gmail.com> I see you resent the patch and it received attention the second time :). Stefan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] improve emulation correctness 2014-05-02 9:09 ` Stefan Hajnoczi @ 2014-05-06 12:16 ` poletaev 0 siblings, 0 replies; 3+ messages in thread From: poletaev @ 2014-05-06 12:16 UTC (permalink / raw) To: 'Stefan Hajnoczi'; +Cc: qemu-devel Thank you for attention :) This patch not needed, according to QEMU dev policy, and so I will not sent it any more. I found another defect, and it not related with undefined flags. -----Original Message----- From: Stefan Hajnoczi [mailto:stefanha@gmail.com] Sent: Friday, May 02, 2014 1:09 PM To: poletaev Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH] improve emulation correctness On Thu, Apr 24, 2014 at 12:35:24PM +0400, poletaev wrote: > There is a set of test, that checks QEMU CPU for similar behavior with > real hardware (http://roberto.greyhats.it/projects/pills.html). Test > reg/pill2579.c can detect, that program is execute in emulated environment. > It is related with behavior of rcl instruction. If the number of > shifted bits more than 1, OF of eflags become undefined. Real CPUs > does not change OF, if it is undefined. QEMU do it anyway. > > Emulated program can execute that test and after that can understand > environment not real. > > > > Signed-off-by: Dmitry Poletaev <observercool@gmail.com> I see you resent the patch and it received attention the second time :). Stefan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-06 12:16 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <535a981f.86a6e00a.7dc9.5f5cSMTPIN_ADDED_BROKEN@mx.google.com> 2014-05-02 9:04 ` [Qemu-devel] [PATCH] improve emulation correctness Stefan Hajnoczi 2014-05-02 9:09 ` Stefan Hajnoczi 2014-05-06 12:16 ` poletaev
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).