Explorar o código

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

* stefanha/trivial-patches:
  ivshmem, qdev-monitor: fix order of qerror parameters
  iov_send_recv(): Handle zero bytes case even if OS does not
  framebuffer: Fix spelling in comment (leight -> height)
  Spelling fix in comment (peripherans -> peripherals)
  docs: Fix spelling (propery -> property)
  trace: Fix "Qemu" -> "QEMU"
  cputlb.c: Fix out of date comment
  ehci: fix assertion typo
  Makefile: Avoid explicit list of directories in clean target
Anthony Liguori %!s(int64=13) %!d(string=hai) anos
pai
achega
d1186a33ef
Modificáronse 10 ficheiros con 20 adicións e 13 borrados
  1. 2 5
      Makefile
  2. 3 1
      cputlb.c
  3. 1 1
      docs/bootindex.txt
  4. 1 1
      hw/framebuffer.c
  5. 2 1
      hw/ivshmem.c
  6. 1 1
      hw/qdev-monitor.c
  7. 1 1
      hw/usb/hcd-ehci.c
  8. 1 1
      hw/versatilepb.c
  9. 7 0
      iov.c
  10. 1 1
      scripts/simpletrace.py

+ 2 - 5
Makefile

@@ -214,13 +214,10 @@ clean:
 # avoid old build problems by removing potentially incorrect old files
 # avoid old build problems by removing potentially incorrect old files
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
 	rm -f qemu-options.def
 	rm -f qemu-options.def
-	rm -f *.o *.d *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
+	find . -name '*.[od]' -exec rm -f {} +
+	rm -f *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
 	rm -Rf .libs
 	rm -Rf .libs
-	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
-	rm -f qom/*.o qom/*.d libuser/qom/*.o libuser/qom/*.d
-	rm -f hw/usb/*.o hw/usb/*.d hw/*.o hw/*.d
 	rm -f qemu-img-cmds.h
 	rm -f qemu-img-cmds.h
-	rm -f trace/*.o trace/*.d
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
 	@# May not be present in GENERATED_HEADERS
 	@# May not be present in GENERATED_HEADERS
 	rm -f trace-dtrace.h trace-dtrace.h-timestamp
 	rm -f trace-dtrace.h trace-dtrace.h-timestamp

+ 3 - 1
cputlb.c

@@ -312,7 +312,9 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr,
 
 
 /* NOTE: this function can trigger an exception */
 /* NOTE: this function can trigger an exception */
 /* NOTE2: the returned address is not exactly the physical address: it
 /* NOTE2: the returned address is not exactly the physical address: it
-   is the offset relative to phys_ram_base */
+ * is actually a ram_addr_t (in system mode; the user mode emulation
+ * version of this function returns a guest virtual address).
+ */
 tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr)
 tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr)
 {
 {
     int mmu_idx, page_index, pd;
     int mmu_idx, page_index, pd;

+ 1 - 1
docs/bootindex.txt

@@ -1,4 +1,4 @@
-= Bootindex propery =
+= Bootindex property =
 
 
 Block and net devices have bootindex property. This property is used to
 Block and net devices have bootindex property. This property is used to
 determine the order in which firmware will consider devices for booting
 determine the order in which firmware will consider devices for booting

+ 1 - 1
hw/framebuffer.c

@@ -28,7 +28,7 @@ void framebuffer_update_display(
     MemoryRegion *address_space,
     MemoryRegion *address_space,
     target_phys_addr_t base,
     target_phys_addr_t base,
     int cols, /* Width in pixels.  */
     int cols, /* Width in pixels.  */
-    int rows, /* Leight in pixels.  */
+    int rows, /* Height in pixels.  */
     int src_width, /* Length of source line, in bytes.  */
     int src_width, /* Length of source line, in bytes.  */
     int dest_row_pitch, /* Bytes between adjacent horizontal output pixels.  */
     int dest_row_pitch, /* Bytes between adjacent horizontal output pixels.  */
     int dest_col_pitch, /* Bytes between adjacent vertical output pixels.  */
     int dest_col_pitch, /* Bytes between adjacent vertical output pixels.  */

+ 2 - 1
hw/ivshmem.c

@@ -677,7 +677,8 @@ static int pci_ivshmem_init(PCIDevice *dev)
     }
     }
 
 
     if (s->role_val == IVSHMEM_PEER) {
     if (s->role_val == IVSHMEM_PEER) {
-        error_set(&s->migration_blocker, QERR_DEVICE_FEATURE_BLOCKS_MIGRATION, "ivshmem", "peer mode");
+        error_set(&s->migration_blocker, QERR_DEVICE_FEATURE_BLOCKS_MIGRATION,
+                  "peer mode", "ivshmem");
         migrate_add_blocker(s->migration_blocker);
         migrate_add_blocker(s->migration_blocker);
     }
     }
 
 

+ 1 - 1
hw/qdev-monitor.c

@@ -443,7 +443,7 @@ DeviceState *qdev_device_add(QemuOpts *opts)
         bus = qbus_find_recursive(sysbus_get_default(), NULL, k->bus_type);
         bus = qbus_find_recursive(sysbus_get_default(), NULL, k->bus_type);
         if (!bus) {
         if (!bus) {
             qerror_report(QERR_NO_BUS_FOR_DEVICE,
             qerror_report(QERR_NO_BUS_FOR_DEVICE,
-                          driver, k->bus_type);
+                          k->bus_type, driver);
             return NULL;
             return NULL;
         }
         }
     }
     }

+ 1 - 1
hw/usb/hcd-ehci.c

@@ -2010,7 +2010,7 @@ static void ehci_fill_queue(EHCIPacket *p)
         p->qtdaddr = qtdaddr;
         p->qtdaddr = qtdaddr;
         p->qtd = qtd;
         p->qtd = qtd;
         p->usb_status = ehci_execute(p, "queue");
         p->usb_status = ehci_execute(p, "queue");
-        assert(p->usb_status = USB_RET_ASYNC);
+        assert(p->usb_status == USB_RET_ASYNC);
         p->async = EHCI_ASYNC_INFLIGHT;
         p->async = EHCI_ASYNC_INFLIGHT;
     }
     }
 }
 }

+ 1 - 1
hw/versatilepb.c

@@ -162,7 +162,7 @@ static int vpb_sic_init(SysBusDevice *dev)
 /* Board init.  */
 /* Board init.  */
 
 
 /* The AB and PB boards both use the same core, just with different
 /* The AB and PB boards both use the same core, just with different
-   peripherans and expansion busses.  For now we emulate a subset of the
+   peripherals and expansion busses.  For now we emulate a subset of the
    PB peripherals and just change the board ID.  */
    PB peripherals and just change the board ID.  */
 
 
 static struct arm_boot_info versatile_binfo;
 static struct arm_boot_info versatile_binfo;

+ 7 - 0
iov.c

@@ -146,6 +146,13 @@ ssize_t iov_send_recv(int sockfd, struct iovec *iov, unsigned iov_cnt,
 {
 {
     ssize_t ret;
     ssize_t ret;
     unsigned si, ei;            /* start and end indexes */
     unsigned si, ei;            /* start and end indexes */
+    if (bytes == 0) {
+        /* Catch the do-nothing case early, as otherwise we will pass an
+         * empty iovec to sendmsg/recvmsg(), and not all implementations
+         * accept this.
+         */
+        return 0;
+    }
 
 
     /* Find the start position, skipping `offset' bytes:
     /* Find the start position, skipping `offset' bytes:
      * first, skip all full-sized vector elements, */
      * first, skip all full-sized vector elements, */

+ 1 - 1
scripts/simpletrace.py

@@ -71,7 +71,7 @@ def read_trace_file(edict, fobj):
 
 
     log_version = header[2]
     log_version = header[2]
     if log_version == 0:
     if log_version == 0:
-        raise ValueError('Older log format, not supported with this Qemu release!')
+        raise ValueError('Older log format, not supported with this QEMU release!')
 
 
     while True:
     while True:
         rec = read_record(edict, fobj)
         rec = read_record(edict, fobj)