]> TLD Linux GIT Repositories - packages/qemu.git/blobdiff - qemu-user-execve.patch
- updated to 7.1.0
[packages/qemu.git] / qemu-user-execve.patch
index ada84ce99b9c09a0a0c0080f0366980ee0f6be03..bbaf83e694d8a2368bb9089a65fde958f068d9ed 100644 (file)
@@ -45,10 +45,10 @@ Reviewed-by: Laurent Vivier <laurent@vivier.eu>
 v3 changes:
        - rebase the patchset against current code
 
-diff -urNpa qemu-7.0.0.orig/linux-user/main.c qemu-7.0.0/linux-user/main.c
---- qemu-7.0.0.orig/linux-user/main.c  2022-06-03 00:24:41.355695042 +0200
-+++ qemu-7.0.0/linux-user/main.c       2022-06-03 00:25:03.067739119 +0200
-@@ -119,6 +119,7 @@ static void usage(int exitcode);
+diff -urNpa qemu-7.1.0.orig/linux-user/main.c qemu-7.1.0/linux-user/main.c
+--- qemu-7.1.0.orig/linux-user/main.c  2022-09-02 16:12:25.825166528 +0200
++++ qemu-7.1.0/linux-user/main.c       2022-09-02 16:12:55.593230519 +0200
+@@ -123,6 +123,7 @@ static void usage(int exitcode);
  
  static const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;
  const char *qemu_uname_release;
@@ -56,7 +56,7 @@ diff -urNpa qemu-7.0.0.orig/linux-user/main.c qemu-7.0.0/linux-user/main.c
  
  /* XXX: on x86 MAP_GROWSDOWN only works if ESP <= address + 32, so
     we allocate a bigger stack. Need a better solution, for example
-@@ -352,6 +353,11 @@ static void handle_arg_guest_base(const
+@@ -356,6 +357,11 @@ static void handle_arg_guest_base(const
      have_guest_base = true;
  }
  
@@ -68,7 +68,7 @@ diff -urNpa qemu-7.0.0.orig/linux-user/main.c qemu-7.0.0/linux-user/main.c
  static void handle_arg_reserved_va(const char *arg)
  {
      char *p;
-@@ -454,6 +460,8 @@ static const struct qemu_argument arg_ta
+@@ -458,6 +464,8 @@ static const struct qemu_argument arg_ta
       "uname",      "set qemu uname release string to 'uname'"},
      {"B",          "QEMU_GUEST_BASE",  true,  handle_arg_guest_base,
       "address",    "set guest_base address to 'address'"},
@@ -77,10 +77,10 @@ diff -urNpa qemu-7.0.0.orig/linux-user/main.c qemu-7.0.0/linux-user/main.c
      {"R",          "QEMU_RESERVED_VA", true,  handle_arg_reserved_va,
       "size",       "reserve 'size' bytes for guest virtual address space"},
      {"d",          "QEMU_LOG",         true,  handle_arg_log,
-diff -urNpa qemu-7.0.0.orig/linux-user/syscall.c qemu-7.0.0/linux-user/syscall.c
---- qemu-7.0.0.orig/linux-user/syscall.c       2022-06-03 00:24:41.357695046 +0200
-+++ qemu-7.0.0/linux-user/syscall.c    2022-06-03 00:25:03.070739125 +0200
-@@ -8300,6 +8300,109 @@ static target_timer_t get_timer_id(abi_l
+diff -urNpa qemu-7.1.0.orig/linux-user/syscall.c qemu-7.1.0/linux-user/syscall.c
+--- qemu-7.1.0.orig/linux-user/syscall.c       2022-09-02 16:12:25.833166545 +0200
++++ qemu-7.1.0/linux-user/syscall.c    2022-09-02 16:12:55.595230523 +0200
+@@ -8330,6 +8330,109 @@ static target_timer_t get_timer_id(abi_l
      return timerid;
  }
  
@@ -190,7 +190,7 @@ diff -urNpa qemu-7.0.0.orig/linux-user/syscall.c qemu-7.0.0/linux-user/syscall.c
  static int target_to_host_cpu_mask(unsigned long *host_mask,
                                     size_t host_size,
                                     abi_ulong target_addr,
-@@ -8813,7 +8916,12 @@ static abi_long do_syscall1(void *cpu_en
+@@ -8843,7 +8946,12 @@ static abi_long do_syscall1(CPUArchState
               * before the execve completes and makes it the other
               * program's problem.
               */
@@ -204,9 +204,9 @@ diff -urNpa qemu-7.0.0.orig/linux-user/syscall.c qemu-7.0.0/linux-user/syscall.c
              unlock_user(p, arg1, 0);
  
              goto execve_end;
-diff -urNpa qemu-7.0.0.orig/linux-user/user-internals.h qemu-7.0.0/linux-user/user-internals.h
---- qemu-7.0.0.orig/linux-user/user-internals.h        2022-06-03 00:24:41.355695042 +0200
-+++ qemu-7.0.0/linux-user/user-internals.h     2022-06-03 00:25:03.070739125 +0200
+diff -urNpa qemu-7.1.0.orig/linux-user/user-internals.h qemu-7.1.0/linux-user/user-internals.h
+--- qemu-7.1.0.orig/linux-user/user-internals.h        2022-09-02 16:12:25.822166522 +0200
++++ qemu-7.1.0/linux-user/user-internals.h     2022-09-02 16:12:55.595230523 +0200
 @@ -27,6 +27,7 @@ void init_task_state(TaskState *ts);
  void task_settid(TaskState *);
  void stop_all_tasks(void);