 dc9827a6a4
			
		
	
	
		dc9827a6a4
		
	
	
	
	
		
			
			Only very minor changes needed:
* Most patches in extra (or some version of them) are part of 7.0.0.
* aio_set_fd_handler got an extra parameter, but can just pass NULL
  like we did for the related 'poll' parameter. See QEMU commit
  826cc32423db2a99d184dbf4f507c737d7e7a4ae for more.
* Add include for qemu/memalign.h in vma.c and vma-writer.c.
* Add reverts for fixups of already reverted 0347a8fd4c ("block/rbd:
  implement bdrv_co_block_status") that came in with 7.0.0. Those
  fixups are not enough, see Proxmox bugzilla #4047.
* Two trivial context changes for bitmap-mirror patches.
* block_int.h got split up into multiple headers.
* Some context changes in configure and meson.build.
* Used the oppurtunity to squash fixup of bdrv_backuo_dump_create typo
  in a later patch into the patch introducing the function (had to
  move code to new header during rebase).
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
		
	
			
		
			
				
	
	
		
			56 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 | |
| From: Wolfgang Bumiller <w.bumiller@proxmox.com>
 | |
| Date: Mon, 6 Apr 2020 12:16:48 +0200
 | |
| Subject: [PATCH] PVE: Add dummy -id command line parameter
 | |
| 
 | |
| This used to be part of the qemu-side PVE authentication for
 | |
| VNC. Now this does nothing.
 | |
| 
 | |
| Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
 | |
| Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
 | |
| ---
 | |
|  qemu-options.hx | 3 +++
 | |
|  softmmu/vl.c    | 8 ++++++++
 | |
|  2 files changed, 11 insertions(+)
 | |
| 
 | |
| diff --git a/qemu-options.hx b/qemu-options.hx
 | |
| index aeade4ef80..a26f0b0400 100644
 | |
| --- a/qemu-options.hx
 | |
| +++ b/qemu-options.hx
 | |
| @@ -1075,6 +1075,9 @@ DEFHEADING()
 | |
|  
 | |
|  DEFHEADING(Block device options:)
 | |
|  
 | |
| +DEF("id", HAS_ARG, QEMU_OPTION_id,
 | |
| +    "-id n           set the VMID", QEMU_ARCH_ALL)
 | |
| +
 | |
|  DEF("fda", HAS_ARG, QEMU_OPTION_fda,
 | |
|      "-fda/-fdb file  use 'file' as floppy disk 0/1 image\n", QEMU_ARCH_ALL)
 | |
|  DEF("fdb", HAS_ARG, QEMU_OPTION_fdb, "", QEMU_ARCH_ALL)
 | |
| diff --git a/softmmu/vl.c b/softmmu/vl.c
 | |
| index a3f2a3818c..4208142685 100644
 | |
| --- a/softmmu/vl.c
 | |
| +++ b/softmmu/vl.c
 | |
| @@ -2785,6 +2785,7 @@ void qemu_init(int argc, char **argv, char **envp)
 | |
|      MachineClass *machine_class;
 | |
|      bool userconfig = true;
 | |
|      FILE *vmstate_dump_file = NULL;
 | |
| +    long vm_id;
 | |
|  
 | |
|      qemu_add_opts(&qemu_drive_opts);
 | |
|      qemu_add_drive_opts(&qemu_legacy_drive_opts);
 | |
| @@ -3420,6 +3421,13 @@ void qemu_init(int argc, char **argv, char **envp)
 | |
|                  machine_parse_property_opt(qemu_find_opts("smp-opts"),
 | |
|                                             "smp", optarg);
 | |
|                  break;
 | |
| +            case QEMU_OPTION_id:
 | |
| +                vm_id = strtol(optarg, (char **)&optarg, 10);
 | |
| +                if (*optarg != 0 || vm_id < 100 || vm_id > INT_MAX) {
 | |
| +                    error_report("invalid -id argument %s", optarg);
 | |
| +                    exit(1);
 | |
| +                }
 | |
| +                break;
 | |
|              case QEMU_OPTION_vnc:
 | |
|                  vnc_parse(optarg);
 | |
|                  break;
 |