[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Get current env within io_handler ?
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] Get current env within io_handler ? |
Date: |
Tue, 15 May 2012 17:19:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 |
Am 15.05.2012 17:12, schrieb nicolas.sauzede:
> [...] when trying smp mode, I can't manage to retrieve the current env
> (ie: current smp processor number, registers, etc..),
> because it seems like the "cpu_single_env" variable is set to NULL
> explicitly in cpu-exec.c :
> /* fail safe : never use cpu_single_env outside cpu_exec() */
> cpu_single_env = NULL;
> return ret;
> }
>
> Is this intentional ? Would it be very bad to get access to the current
> env in io_handler ? (it works if commenting out "cpu_single_env = NULL;")
I don't understand what io_handler you mean, but usually you have access
to an "env" variable, either passed explicitly or available pinned to
AREG0 register. cpu_single_env by contrary is most likely not the
solution you are looking for.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] Get current env within io_handler ?, nicolas.sauzede, 2012/05/15
- Re: [Qemu-devel] Get current env within io_handler ?,
Andreas Färber <=
- Re: [Qemu-devel] Get current env within io_handler ?, nicolas.sauzede, 2012/05/15
- Re: [Qemu-devel] Get current env within io_handler ?, Peter Maydell, 2012/05/15
- Re: [Qemu-devel] Get current env within io_handler ?, Andreas Färber, 2012/05/15
- Re: [Qemu-devel] Get current env within io_handler ?, nicolas.sauzede, 2012/05/16
- Re: [Qemu-devel] Get current env within io_handler ?, Blue Swirl, 2012/05/19
- Re: [Qemu-devel] Get current env within io_handler ?, Peter Maydell, 2012/05/19
- Re: [Qemu-devel] Get current env within io_handler ?, nicolas.sauzede, 2012/05/21
- Re: [Qemu-devel] Get current env within io_handler ?, Peter Maydell, 2012/05/21
- Re: [Qemu-devel] Get current env within io_handler ?, Blue Swirl, 2012/05/21
- Re: [Qemu-devel] Get current env within io_handler ?, Peter Maydell, 2012/05/21