All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
To: Blaisorblade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] Patchset to implement PTRACE_SYSEMU_SINGLESTEP
Date: Tue, 07 Dec 2004 15:21:19 +0100	[thread overview]
Message-ID: <41B5BC5F.20001@fujitsu-siemens.com> (raw)
In-Reply-To: <200412062133.05798.blaisorblade_spam@yahoo.it>

Blaisorblade wrote:
> On Friday 12 November 2004 21:05, Bodo Stroesser wrote:
> 
>>Attached are several patches. Four of them (patch-2.6.*-skas-v7-*)
>>implement PTRACE_SYSEMU_SINGLESTEP in the host. They are based on
>>linux-2.6.7-vanilla + host-skas3-2.6.7-v7.patch (resp. the 2.6.9 versions).
>>The "-reorganize" patches are a rework of the current patch without
>>changing the functionality. The "add-SYSEMU_SINGLESTEP" then implement the
>>new features. Please note: the differences between 2.6.7 and 2.6.9 are
>>dependent on the different handling of syscall singlestepping in the two
>>versions.
> 
> 
>>To have UML using the new feature, there are two further patches named
>>patch-SYSEMU_SINGLESTEP-*. They are based on linux-2.6.9-vanilla +
>>all bb2-patches + patch-sysemu-tt + patch-fix-uml-hang-on-2.6.9-host.
>>To have all the patches complete, the latter two are attached also.
> 
> 
>>I tested on host 2.6.7 and host 2.6.9 with SKAS and TT mode. Currently I
>>don't know any problem with it.
> 
> I have a problem... in recent host kernels, isn't SINGLESTEP also trapping for 
> syscall instructions?
Yes. IIRC, this feature was included with i386 2.6.9. I'm sure 2.6.7 doesn't
have it, 2.6.9 has.
The difference between the host versions are the reason for the different
reorganize- and add- patches for 2.6.7 and 2.6.9.
But, please, tell me, what problem do you see? SYSEMU_SINGLESTEP is a new
function, that does SYSCALL_TRACE on syscalls and SINGLESTEP on all other
instructions. The function is added without changing the previous functions.
If available, the UML-kernel my use the new function, but users on UML
shouldn't see any changed behavior.
By the way: they also don't see the differences between host 2.6.7 and 2.6.9
regarding syscall-singlestepping.

> 
> Also, you say that SINGLESTEP_SYSEMU does automatic syscall overwriting with 
> -1 or emulates that - I suspect it being in the reorganize patches, but you 
> don't mention it in the changelogs here, only about the UML patches.
No. The overwrite is in the "add-" patches. The "reorganize-" patches are
intended to *only* reorganize SKAS3-V7 without changing any little bit of
its behavior. Everything else I would call an error.
But it would be easy to split the "add-" patches into an "overwrite-" and
an remaining "add-" patch.
I only wanted to make clear, that UML must not rely on overwriting done by
the host, unless it can detect the host to have a skas-sysemu-patch with
overwriting enabled. My idea was to take availability of SYSEMU_SINGLESTEP
as flag, that the host *will* do overwriting.

> 
> So, I'd personally accept only the -reorganize ones and hold on the rest - 
> which is probably achieved with mainline SINGLESTEP fixes in 2.6.9 (or which 
> could be discussed).
> 
> Sorry for being so late (I'd say "Call me a lamer" :-) ) in discussing this, 
> but I hadn't the time to study patches and realize this.
> 
>>Bodo
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2004-12-07 14:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-12 20:05 [uml-devel] Patchset to implement PTRACE_SYSEMU_SINGLESTEP Bodo Stroesser
2004-11-12 23:43 ` Blaisorblade
2004-11-15 17:11   ` Bodo Stroesser
2004-11-18  6:47     ` Jeff Dike
2004-11-18 14:19       ` Bodo Stroesser
2004-11-18 14:41         ` Blaisorblade
2004-11-18 16:01           ` Bodo Stroesser
2004-12-06 20:33 ` Blaisorblade
2004-12-07 14:21   ` Bodo Stroesser [this message]

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=41B5BC5F.20001@fujitsu-siemens.com \
    --to=bstroesser@fujitsu-siemens.com \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.