[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 13/18] coroutine-sigaltstack: rename coroutine struct
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 13/18] coroutine-sigaltstack: rename coroutine struct appropriately |
Date: |
Tue, 27 Sep 2016 15:53:56 +0200 |
From: Peter Lieven <address@hidden>
The name of the sigaltstack coroutine struct was misleading.
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
util/coroutine-sigaltstack.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/util/coroutine-sigaltstack.c b/util/coroutine-sigaltstack.c
index a7c3366..171cd44 100644
--- a/util/coroutine-sigaltstack.c
+++ b/util/coroutine-sigaltstack.c
@@ -34,7 +34,7 @@ typedef struct {
Coroutine base;
void *stack;
sigjmp_buf env;
-} CoroutineUContext;
+} CoroutineSigAltStack;
/**
* Per-thread coroutine bookkeeping
@@ -44,7 +44,7 @@ typedef struct {
Coroutine *current;
/** The default coroutine */
- CoroutineUContext leader;
+ CoroutineSigAltStack leader;
/** Information for the signal handler (trampoline) */
sigjmp_buf tr_reenter;
@@ -89,7 +89,7 @@ static void __attribute__((constructor)) coroutine_init(void)
* (from the signal handler when it is not signal handling, read ahead
* for more information).
*/
-static void coroutine_bootstrap(CoroutineUContext *self, Coroutine *co)
+static void coroutine_bootstrap(CoroutineSigAltStack *self, Coroutine *co)
{
/* Initialize longjmp environment and switch back the caller */
if (!sigsetjmp(self->env, 0)) {
@@ -109,7 +109,7 @@ static void coroutine_bootstrap(CoroutineUContext *self,
Coroutine *co)
*/
static void coroutine_trampoline(int signal)
{
- CoroutineUContext *self;
+ CoroutineSigAltStack *self;
Coroutine *co;
CoroutineThreadState *coTS;
@@ -144,7 +144,7 @@ static void coroutine_trampoline(int signal)
Coroutine *qemu_coroutine_new(void)
{
const size_t stack_size = 1 << 20;
- CoroutineUContext *co;
+ CoroutineSigAltStack *co;
CoroutineThreadState *coTS;
struct sigaction sa;
struct sigaction osa;
@@ -251,7 +251,7 @@ Coroutine *qemu_coroutine_new(void)
void qemu_coroutine_delete(Coroutine *co_)
{
- CoroutineUContext *co = DO_UPCAST(CoroutineUContext, base, co_);
+ CoroutineSigAltStack *co = DO_UPCAST(CoroutineSigAltStack, base, co_);
g_free(co->stack);
g_free(co);
@@ -260,8 +260,8 @@ void qemu_coroutine_delete(Coroutine *co_)
CoroutineAction qemu_coroutine_switch(Coroutine *from_, Coroutine *to_,
CoroutineAction action)
{
- CoroutineUContext *from = DO_UPCAST(CoroutineUContext, base, from_);
- CoroutineUContext *to = DO_UPCAST(CoroutineUContext, base, to_);
+ CoroutineSigAltStack *from = DO_UPCAST(CoroutineSigAltStack, base, from_);
+ CoroutineSigAltStack *to = DO_UPCAST(CoroutineSigAltStack, base, to_);
CoroutineThreadState *s = coroutine_get_thread_state();
int ret;
--
1.8.3.1
- [Qemu-devel] [PULL 08/18] block: Parse 'detect-zeroes' in bdrv_open_common(), (continued)
- [Qemu-devel] [PULL 08/18] block: Parse 'detect-zeroes' in bdrv_open_common(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 04/18] block: Fix error path in qmp_blockdev_change_medium(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 11/18] block: Remove qemu_root_bds_opts, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 09/18] block: Use 'detect-zeroes' option for 'blockdev-change-medium', Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 16/18] coroutine-sigaltstack: use helper for allocating stack memory, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 10/18] block: Move 'discard' option to bdrv_open_common(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 18/18] coroutine: reduce stack size to 60kB, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 07/18] block/qapi: Move 'aio' option to file driver, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 12/18] oslib-posix: add helpers for stack alloc and free, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 15/18] coroutine-ucontext: use helper for allocating stack memory, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 13/18] coroutine-sigaltstack: rename coroutine struct appropriately,
Kevin Wolf <=
- [Qemu-devel] [PULL 14/18] coroutine: add a macro for the coroutine stack size, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 17/18] oslib-posix: add a configure switch to debug stack usage, Kevin Wolf, 2016/09/27
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Peter Maydell, 2016/09/27
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Kevin Wolf, 2016/09/28
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Peter Maydell, 2016/09/28
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Peter Maydell, 2016/09/28
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Kevin Wolf, 2016/09/29
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, John Snow, 2016/09/29
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Paolo Bonzini, 2016/09/29
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, John Snow, 2016/09/29