* [Qemu-devel] [PATCH 01/12] srp: Don't use QEMU_PACKED for single elements of a structured type
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 02/12] Spelling fixes in comments and documentation Stefan Hajnoczi
` (11 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
QEMU_PACKED results in a MinGW compiler warning when it is
used for single structure elements:
warning: 'gcc_struct' attribute ignored
Using QEMU_PACKED for the whole structure avoids the compiler warning
without changing the memory layout.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
hw/srp.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/srp.h b/hw/srp.h
index 3009bd5..5e0cad5 100644
--- a/hw/srp.h
+++ b/hw/srp.h
@@ -177,13 +177,13 @@ struct srp_tsk_mgmt {
uint8_t reserved1[6];
uint64_t tag;
uint8_t reserved2[4];
- uint64_t lun QEMU_PACKED;
+ uint64_t lun;
uint8_t reserved3[2];
uint8_t tsk_mgmt_func;
uint8_t reserved4;
uint64_t task_tag;
uint8_t reserved5[8];
-};
+} QEMU_PACKED;
/*
* We need the packed attribute because the SRP spec only aligns the
@@ -198,14 +198,14 @@ struct srp_cmd {
uint8_t data_in_desc_cnt;
uint64_t tag;
uint8_t reserved2[4];
- uint64_t lun QEMU_PACKED;
+ uint64_t lun;
uint8_t reserved3;
uint8_t task_attr;
uint8_t reserved4;
uint8_t add_cdb_len;
uint8_t cdb[16];
uint8_t add_data[0];
-};
+} QEMU_PACKED;
enum {
SRP_RSP_FLAG_RSPVALID = 1 << 0,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 02/12] Spelling fixes in comments and documentation
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 01/12] srp: Don't use QEMU_PACKED for single elements of a structured type Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 03/12] Fix spelling (licenced -> licensed) in GPL Stefan Hajnoczi
` (10 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
These wrong spellings were detected by codespell:
* successully -> successfully
* alot -> a lot
* wanna -> want to
* infomation -> information
* occured -> occurred
["also is" -> "is also" and "ressources" -> "resources" suggested by
Peter Maydell <peter.maydell@linaro.org>]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
docs/specs/ppc-spapr-hcalls.txt | 2 +-
docs/usb2.txt | 4 ++--
hw/xen_pt.h | 4 ++--
hw/xen_pt_config_init.c | 14 +++++++-------
qemu-img.c | 2 +-
qemu-img.texi | 2 +-
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/docs/specs/ppc-spapr-hcalls.txt b/docs/specs/ppc-spapr-hcalls.txt
index 52ba8d4..667b3fa 100644
--- a/docs/specs/ppc-spapr-hcalls.txt
+++ b/docs/specs/ppc-spapr-hcalls.txt
@@ -31,7 +31,7 @@ Arguments:
Returns:
- H_SUCCESS : Successully called the RTAS function (RTAS result
+ H_SUCCESS : Successfully called the RTAS function (RTAS result
will have been stored in the parameter block)
H_PARAMETER : Unknown token
diff --git a/docs/usb2.txt b/docs/usb2.txt
index d17e3c0..43dacde 100644
--- a/docs/usb2.txt
+++ b/docs/usb2.txt
@@ -58,11 +58,11 @@ try ...
xhci controller support
-----------------------
-There also is xhci host controller support available. It got alot
+There is also xhci host controller support available. It got a lot
less testing than ehci and there are a bunch of known limitations, so
ehci may work better for you. On the other hand the xhci hardware
design is much more virtualization-friendly, thus xhci emulation uses
-less ressources (especially cpu). If you wanna give xhci a try
+less resources (especially cpu). If you want to give xhci a try
use this to add the host controller ...
qemu -device nec-usb-xhci,id=xhci
diff --git a/hw/xen_pt.h b/hw/xen_pt.h
index 41904ec..112477a 100644
--- a/hw/xen_pt.h
+++ b/hw/xen_pt.h
@@ -96,7 +96,7 @@ typedef struct XenPTRegion {
* - do NOT use ALL F for init_val, otherwise the tbl will not be registered.
*/
-/* emulated register infomation */
+/* emulated register information */
struct XenPTRegInfo {
uint32_t offset;
uint32_t size;
@@ -140,7 +140,7 @@ typedef int (*xen_pt_reg_size_init_fn)
(XenPCIPassthroughState *, const XenPTRegGroupInfo *,
uint32_t base_offset, uint8_t *size);
-/* emulated register group infomation */
+/* emulated register group information */
struct XenPTRegGroupInfo {
uint8_t grp_id;
XenPTRegisterGroupType grp_type;
diff --git a/hw/xen_pt_config_init.c b/hw/xen_pt_config_init.c
index 00eb3d9..e524a40 100644
--- a/hw/xen_pt_config_init.c
+++ b/hw/xen_pt_config_init.c
@@ -562,7 +562,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s,
return 0;
}
-/* Header Type0 reg static infomation table */
+/* Header Type0 reg static information table */
static XenPTRegInfo xen_pt_emu_reg_header0[] = {
/* Vendor ID reg */
{
@@ -753,7 +753,7 @@ static XenPTRegInfo xen_pt_emu_reg_header0[] = {
* Vital Product Data Capability
*/
-/* Vital Product Data Capability Structure reg static infomation table */
+/* Vital Product Data Capability Structure reg static information table */
static XenPTRegInfo xen_pt_emu_reg_vpd[] = {
{
.offset = PCI_CAP_LIST_NEXT,
@@ -775,7 +775,7 @@ static XenPTRegInfo xen_pt_emu_reg_vpd[] = {
* Vendor Specific Capability
*/
-/* Vendor Specific Capability Structure reg static infomation table */
+/* Vendor Specific Capability Structure reg static information table */
static XenPTRegInfo xen_pt_emu_reg_vendor[] = {
{
.offset = PCI_CAP_LIST_NEXT,
@@ -866,7 +866,7 @@ static int xen_pt_linkctrl2_reg_init(XenPCIPassthroughState *s,
return 0;
}
-/* PCI Express Capability Structure reg static infomation table */
+/* PCI Express Capability Structure reg static information table */
static XenPTRegInfo xen_pt_emu_reg_pcie[] = {
/* Next Pointer reg */
{
@@ -981,7 +981,7 @@ static int xen_pt_pmcsr_reg_write(XenPCIPassthroughState *s,
return 0;
}
-/* Power Management Capability reg static infomation table */
+/* Power Management Capability reg static information table */
static XenPTRegInfo xen_pt_emu_reg_pm[] = {
/* Next Pointer reg */
{
@@ -1259,7 +1259,7 @@ static int xen_pt_msgdata_reg_write(XenPCIPassthroughState *s,
return 0;
}
-/* MSI Capability Structure reg static infomation table */
+/* MSI Capability Structure reg static information table */
static XenPTRegInfo xen_pt_emu_reg_msi[] = {
/* Next Pointer reg */
{
@@ -1396,7 +1396,7 @@ static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s,
return 0;
}
-/* MSI-X Capability Structure reg static infomation table */
+/* MSI-X Capability Structure reg static information table */
static XenPTRegInfo xen_pt_emu_reg_msix[] = {
/* Next Pointer reg */
{
diff --git a/qemu-img.c b/qemu-img.c
index b41e670..833b2b0 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -89,7 +89,7 @@ static void help(void)
" '-r' tries to repair any inconsistencies that are found during the check.\n"
" '-r leaks' repairs only cluster leaks, whereas '-r all' fixes all\n"
" kinds of errors, with a higher risk of choosing the wrong fix or\n"
- " hiding corruption that has already occured.\n"
+ " hiding corruption that has already occurred.\n"
"\n"
"Parameters to snapshot subcommand:\n"
" 'snapshot' is the name of the snapshot to create, apply or delete\n"
diff --git a/qemu-img.texi b/qemu-img.texi
index 6b42e35..360543b 100644
--- a/qemu-img.texi
+++ b/qemu-img.texi
@@ -87,7 +87,7 @@ Perform a consistency check on the disk image @var{filename}.
If @code{-r} is specified, qemu-img tries to repair any inconsistencies found
during the check. @code{-r leaks} repairs only cluster leaks, whereas
@code{-r all} fixes all kinds of errors, with a higher risk of choosing the
-wrong fix or hiding corruption that has already occured.
+wrong fix or hiding corruption that has already occurred.
Only the formats @code{qcow2}, @code{qed} and @code{vdi} support
consistency checks.
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 03/12] Fix spelling (licenced -> licensed) in GPL
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 01/12] srp: Don't use QEMU_PACKED for single elements of a structured type Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 02/12] Spelling fixes in comments and documentation Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 04/12] Spelling fixes in comments and macro names (ressource -> resource) Stefan Hajnoczi
` (9 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
The patch also fixes the case of "written".
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
hw/imx_avic.c | 4 ++--
hw/imx_timer.c | 4 ++--
hw/kzm.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/imx_avic.c b/hw/imx_avic.c
index 4f010e8..b1a8fe6 100644
--- a/hw/imx_avic.c
+++ b/hw/imx_avic.c
@@ -6,9 +6,9 @@
*
* Copyright (c) 2008 OKL
* Copyright (c) 2011 NICTA Pty Ltd
- * Originally Written by Hans Jiang
+ * Originally written by Hans Jiang
*
- * This code is licenced under the GPL version 2 or later. See
+ * This code is licensed under the GPL version 2 or later. See
* the COPYING file in the top-level directory.
*
* TODO: implement vectors.
diff --git a/hw/imx_timer.c b/hw/imx_timer.c
index 16215cc..c28c537 100644
--- a/hw/imx_timer.c
+++ b/hw/imx_timer.c
@@ -3,10 +3,10 @@
*
* Copyright (c) 2008 OK Labs
* Copyright (c) 2011 NICTA Pty Ltd
- * Originally Written by Hans Jiang
+ * Originally written by Hans Jiang
* Updated by Peter Chubb
*
- * This code is licenced under GPL version 2 or later. See
+ * This code is licensed under GPL version 2 or later. See
* the COPYING file in the top-level directory.
*
*/
diff --git a/hw/kzm.c b/hw/kzm.c
index 6a5e9df..68cd1b4 100644
--- a/hw/kzm.c
+++ b/hw/kzm.c
@@ -5,7 +5,7 @@
* Written by Hans at OK-Labs
* Updated by Peter Chubb.
*
- * This code is licenced under the GPL, version 2 or later.
+ * This code is licensed under the GPL, version 2 or later.
* See the file `COPYING' in the top level directory.
*
* It (partially) emulates a Kyoto Microcomputer
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 04/12] Spelling fixes in comments and macro names (ressource -> resource)
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (2 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 03/12] Fix spelling (licenced -> licensed) in GPL Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 05/12] ui: Fix spelling in comment " Stefan Hajnoczi
` (8 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
Macro XEN_HOST_PCI_RESOURCE_BUFFER_SIZE is only used locally,
so the change should be safe.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
hw/xen-host-pci-device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/xen-host-pci-device.c b/hw/xen-host-pci-device.c
index e7ff680..743b37b 100644
--- a/hw/xen-host-pci-device.c
+++ b/hw/xen-host-pci-device.c
@@ -47,13 +47,13 @@ static int xen_host_pci_sysfs_path(const XenHostPCIDevice *d,
}
-/* This size should be enough to read the first 7 lines of a ressource file */
-#define XEN_HOST_PCI_RESSOURCE_BUFFER_SIZE 400
+/* This size should be enough to read the first 7 lines of a resource file */
+#define XEN_HOST_PCI_RESOURCE_BUFFER_SIZE 400
static int xen_host_pci_get_resource(XenHostPCIDevice *d)
{
int i, rc, fd;
char path[PATH_MAX];
- char buf[XEN_HOST_PCI_RESSOURCE_BUFFER_SIZE];
+ char buf[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE];
unsigned long long start, end, flags, size;
char *endptr, *s;
uint8_t type;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 05/12] ui: Fix spelling in comment (ressource -> resource)
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (3 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 04/12] Spelling fixes in comments and macro names (ressource -> resource) Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 06/12] linux-user: Remove #if 0'd cpu_get_real_ticks() definition Stefan Hajnoczi
` (7 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
The function is called interface_release_resource.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
ui/spice-display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 99bc665..11f55c4 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -243,7 +243,7 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd)
}
/*
- * Called from spice server thread context (via interface_release_ressource)
+ * Called from spice server thread context (via interface_release_resource)
* We do *not* hold the global qemu mutex here, so extra care is needed
* when calling qemu functions. QEMU interfaces used:
* - g_free (underlying glibc free is re-entrant).
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 06/12] linux-user: Remove #if 0'd cpu_get_real_ticks() definition
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (4 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 05/12] ui: Fix spelling in comment " Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 9:31 ` Riku Voipio
2012-09-14 8:42 ` [Qemu-devel] [PATCH 07/12] Fix copy&paste typos in documentation comments Stefan Hajnoczi
` (6 subsequent siblings)
12 siblings, 1 reply; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Peter Maydell, qemu-devel, Stefan Hajnoczi
From: Peter Maydell <peter.maydell@linaro.org>
Remove the cpu_get_real_ticks() definition from linux-user/main.c.
This has been disabled via #if 0 and unused since commit 1dce7c3c22
in 2006; the definitions we actually use are in qemu-timer.h.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
linux-user/main.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index 1a1c661..e84a18c 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -89,19 +89,6 @@ int cpu_get_pic_interrupt(CPUX86State *env)
}
#endif
-/* timers for rdtsc */
-
-#if 0
-
-static uint64_t emu_time;
-
-int64_t cpu_get_real_ticks(void)
-{
- return emu_time++;
-}
-
-#endif
-
#if defined(CONFIG_USE_NPTL)
/***********************************************************/
/* Helper routines for implementing atomic operations. */
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] [PATCH 06/12] linux-user: Remove #if 0'd cpu_get_real_ticks() definition
2012-09-14 8:42 ` [Qemu-devel] [PATCH 06/12] linux-user: Remove #if 0'd cpu_get_real_ticks() definition Stefan Hajnoczi
@ 2012-09-14 9:31 ` Riku Voipio
0 siblings, 0 replies; 15+ messages in thread
From: Riku Voipio @ 2012-09-14 9:31 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: Peter Maydell, Anthony Liguori, qemu-devel, Stefan Hajnoczi
On Fri, Sep 14, 2012 at 09:42:20AM +0100, Stefan Hajnoczi wrote:
> From: Peter Maydell <peter.maydell@linaro.org>
>
> Remove the cpu_get_real_ticks() definition from linux-user/main.c.
> This has been disabled via #if 0 and unused since commit 1dce7c3c22
> in 2006; the definitions we actually use are in qemu-timer.h.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
> ---
> linux-user/main.c | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 1a1c661..e84a18c 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -89,19 +89,6 @@ int cpu_get_pic_interrupt(CPUX86State *env)
> }
> #endif
>
> -/* timers for rdtsc */
> -
> -#if 0
> -
> -static uint64_t emu_time;
> -
> -int64_t cpu_get_real_ticks(void)
> -{
> - return emu_time++;
> -}
> -
> -#endif
> -
> #if defined(CONFIG_USE_NPTL)
> /***********************************************************/
> /* Helper routines for implementing atomic operations. */
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 07/12] Fix copy&paste typos in documentation comments
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (5 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 06/12] linux-user: Remove #if 0'd cpu_get_real_ticks() definition Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 08/12] console: Clean up bytes per pixel calculation Stefan Hajnoczi
` (5 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi
From: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
memory.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/memory.h b/memory.h
index bd1bbae..f6c8e32 100644
--- a/memory.h
+++ b/memory.h
@@ -252,9 +252,9 @@ void memory_region_init_ram(MemoryRegion *mr,
uint64_t size);
/**
- * memory_region_init_ram: Initialize RAM memory region from a user-provided.
- * pointer. Accesses into the region will modify
- * memory directly.
+ * memory_region_init_ram_ptr: Initialize RAM memory region from a
+ * user-provided pointer. Accesses into the
+ * region will modify memory directly.
*
* @mr: the #MemoryRegion to be initialized.
* @name: the name of the region.
@@ -581,7 +581,8 @@ void memory_region_add_subregion(MemoryRegion *mr,
target_phys_addr_t offset,
MemoryRegion *subregion);
/**
- * memory_region_add_subregion: Add a subregion to a container, with overlap.
+ * memory_region_add_subregion_overlap: Add a subregion to a container
+ * with overlap.
*
* Adds a subregion at @offset. The subregion may overlap with other
* subregions. Conflicts are resolved by having a higher @priority hide a
@@ -743,7 +744,7 @@ void memory_listener_unregister(MemoryListener *listener);
void memory_global_dirty_log_start(void);
/**
- * memory_global_dirty_log_stop: begin dirty logging for all regions
+ * memory_global_dirty_log_stop: end dirty logging for all regions
*/
void memory_global_dirty_log_stop(void);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 08/12] console: Clean up bytes per pixel calculation
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (6 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 07/12] Fix copy&paste typos in documentation comments Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 09/12] qapi: Fix enumeration typo error Stefan Hajnoczi
` (4 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi
From: BALATON Zoltan <balaton@eik.bme.hu>
Division with round up is the correct way to compute this even if the
only case where division with round down gives incorrect result is
probably 15 bpp. This case was explicitely patched up in one of these
functions but was unhandled in the other. (I'm not sure about setting
16 bpp for the 15bpp case either but I left that there for now.)
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
console.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/console.c b/console.c
index c1ed5e0..a8bcc42 100644
--- a/console.c
+++ b/console.c
@@ -1612,7 +1612,7 @@ PixelFormat qemu_different_endianness_pixelformat(int bpp)
memset(&pf, 0x00, sizeof(PixelFormat));
pf.bits_per_pixel = bpp;
- pf.bytes_per_pixel = bpp / 8;
+ pf.bytes_per_pixel = DIV_ROUND_UP(bpp, 8);
pf.depth = bpp == 32 ? 24 : bpp;
switch (bpp) {
@@ -1661,13 +1661,12 @@ PixelFormat qemu_default_pixelformat(int bpp)
memset(&pf, 0x00, sizeof(PixelFormat));
pf.bits_per_pixel = bpp;
- pf.bytes_per_pixel = bpp / 8;
+ pf.bytes_per_pixel = DIV_ROUND_UP(bpp, 8);
pf.depth = bpp == 32 ? 24 : bpp;
switch (bpp) {
case 15:
pf.bits_per_pixel = 16;
- pf.bytes_per_pixel = 2;
pf.rmask = 0x00007c00;
pf.gmask = 0x000003E0;
pf.bmask = 0x0000001F;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 09/12] qapi: Fix enumeration typo error
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (7 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 08/12] console: Clean up bytes per pixel calculation Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 10/12] kvm: Fix warning from static code analysis Stefan Hajnoczi
` (3 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Hajnoczi, qemu-devel, Lei Li
From: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
qapi-schema-guest.json | 2 +-
qapi-schema.json | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/qapi-schema-guest.json b/qapi-schema-guest.json
index d955cf1..ed0eb69 100644
--- a/qapi-schema-guest.json
+++ b/qapi-schema-guest.json
@@ -293,7 +293,7 @@
##
# @GuestFsFreezeStatus
#
-# An enumation of filesystem freeze states
+# An enumeration of filesystem freeze states
#
# @thawed: filesystems thawed/unfrozen
#
diff --git a/qapi-schema.json b/qapi-schema.json
index a9f465a..24f5da0 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -118,7 +118,7 @@
##
# @RunState
#
-# An enumation of VM run states.
+# An enumeration of VM run states.
#
# @debug: QEMU is running on a debugger
#
@@ -785,7 +785,7 @@
##
# @SpiceQueryMouseMode
#
-# An enumation of Spice mouse states.
+# An enumeration of Spice mouse states.
#
# @client: Mouse cursor position is determined by the client.
#
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 10/12] kvm: Fix warning from static code analysis
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (8 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 09/12] qapi: Fix enumeration typo error Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 11/12] arch_init.c: add missing '%' symbols before PRIu64 in debug printfs Stefan Hajnoczi
` (2 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi
From: Stefan Weil <sw@weilnetz.de>
Report from smatch:
kvm-all.c:1373 kvm_init(135) warn:
variable dereferenced before check 's' (see line 1360)
's' cannot by NULL (it was alloced using g_malloc0), so there is no need
to check it here.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
kvm-all.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index 39cff55..e5ed3df 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1409,13 +1409,11 @@ int kvm_init(void)
return 0;
err:
- if (s) {
- if (s->vmfd >= 0) {
- close(s->vmfd);
- }
- if (s->fd != -1) {
- close(s->fd);
- }
+ if (s->vmfd >= 0) {
+ close(s->vmfd);
+ }
+ if (s->fd != -1) {
+ close(s->fd);
}
g_free(s);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 11/12] arch_init.c: add missing '%' symbols before PRIu64 in debug printfs
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (9 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 10/12] kvm: Fix warning from static code analysis Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-14 8:42 ` [Qemu-devel] [PATCH 12/12] configure: fix seccomp check Stefan Hajnoczi
2012-09-17 18:20 ` [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Anthony Liguori
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Hajnoczi, Igor Mitsyanko, qemu-devel
From: Igor Mitsyanko <i.mitsyanko@samsung.com>
'%' symbols were missing in front of PRIu64 macros in DPRINTF() messages in
arch_init.c, this caused compilation warnings when compiled with DEBUG_ARCH_INIT defined.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
arch_init.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 5a1173e..47977de 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -562,7 +562,7 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)
if ((i & 63) == 0) {
uint64_t t1 = (qemu_get_clock_ns(rt_clock) - bwidth) / 1000000;
if (t1 > MAX_WAIT) {
- DPRINTF("big wait: " PRIu64 " milliseconds, %d iterations\n",
+ DPRINTF("big wait: %" PRIu64 " milliseconds, %d iterations\n",
t1, i);
break;
}
@@ -587,7 +587,7 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)
expected_time = ram_save_remaining() * TARGET_PAGE_SIZE / bwidth;
- DPRINTF("ram_save_live: expected(" PRIu64 ") <= max(" PRIu64 ")?\n",
+ DPRINTF("ram_save_live: expected(%" PRIu64 ") <= max(%" PRIu64 ")?\n",
expected_time, migrate_max_downtime());
if (expected_time <= migrate_max_downtime()) {
@@ -799,8 +799,8 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
} while (!(flags & RAM_SAVE_FLAG_EOS));
done:
- DPRINTF("Completed load of VM with exit code %d seq iteration " PRIu64 "\n",
- ret, seq_iter);
+ DPRINTF("Completed load of VM with exit code %d seq iteration "
+ "%" PRIu64 "\n", ret, seq_iter);
return ret;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Qemu-devel] [PATCH 12/12] configure: fix seccomp check
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (10 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 11/12] arch_init.c: add missing '%' symbols before PRIu64 in debug printfs Stefan Hajnoczi
@ 2012-09-14 8:42 ` Stefan Hajnoczi
2012-09-17 18:20 ` [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Anthony Liguori
12 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2012-09-14 8:42 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Stefan Hajnoczi, qemu-devel, Yann E. MORIN
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
Currently, if libseccomp is missing but the user explicitly requested
seccomp support using --enable-seccomp, configure silently ignores the
situation and disables seccomp support.
This is unlike all other tests that explicitly fail in such situation.
Fix that.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 7656c32b..92c4076 100755
--- a/configure
+++ b/configure
@@ -1431,10 +1431,10 @@ if test "$seccomp" != "no" ; then
LIBS=`$pkg_config --libs libseccomp`
seccomp="yes"
else
- seccomp="no"
if test "$seccomp" = "yes"; then
feature_not_found "libseccomp"
fi
+ seccomp="no"
fi
fi
##########################################
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012
2012-09-14 8:42 [Qemu-devel] [PULL 00/12] Trivial patches for 16 August to 14 September 2012 Stefan Hajnoczi
` (11 preceding siblings ...)
2012-09-14 8:42 ` [Qemu-devel] [PATCH 12/12] configure: fix seccomp check Stefan Hajnoczi
@ 2012-09-17 18:20 ` Anthony Liguori
12 siblings, 0 replies; 15+ messages in thread
From: Anthony Liguori @ 2012-09-17 18:20 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel
Stefan Hajnoczi <stefanha@gmail.com> writes:
> The following changes since commit e0a1e32dbc41e6b2aabb436a9417dfd32177a3dc:
>
> Merge branch 'usb.64' of git://git.kraxel.org/qemu (2012-09-11 18:06:56 +0200)
>
> are available in the git repository at:
>
>
> git://github.com/stefanha/qemu.git trivial-patches
>
> for you to fetch changes up to e84d5956cc6215d2f098e7b6090fc5ec4cba1be3:
>
> configure: fix seccomp check (2012-09-14 08:46:27 +0100)
>
Pulled. Thanks.
Regards,
Anthony Liguori
> ----------------------------------------------------------------
> BALATON Zoltan (2):
> Fix copy&paste typos in documentation comments
> console: Clean up bytes per pixel calculation
>
> Igor Mitsyanko (1):
> arch_init.c: add missing '%' symbols before PRIu64 in debug printfs
>
> Lei Li (1):
> qapi: Fix enumeration typo error
>
> Peter Maydell (1):
> linux-user: Remove #if 0'd cpu_get_real_ticks() definition
>
> Stefan Weil (6):
> srp: Don't use QEMU_PACKED for single elements of a structured type
> Spelling fixes in comments and documentation
> Fix spelling (licenced -> licensed) in GPL
> Spelling fixes in comments and macro names (ressource -> resource)
> ui: Fix spelling in comment (ressource -> resource)
> kvm: Fix warning from static code analysis
>
> Yann E. MORIN (1):
> configure: fix seccomp check
>
> arch_init.c | 8 ++++----
> configure | 2 +-
> console.c | 5 ++---
> docs/specs/ppc-spapr-hcalls.txt | 2 +-
> docs/usb2.txt | 4 ++--
> hw/imx_avic.c | 4 ++--
> hw/imx_timer.c | 4 ++--
> hw/kzm.c | 2 +-
> hw/srp.h | 8 ++++----
> hw/xen-host-pci-device.c | 6 +++---
> hw/xen_pt.h | 4 ++--
> hw/xen_pt_config_init.c | 14 +++++++-------
> kvm-all.c | 12 +++++-------
> linux-user/main.c | 13 -------------
> memory.h | 11 ++++++-----
> qapi-schema-guest.json | 2 +-
> qapi-schema.json | 4 ++--
> qemu-img.c | 2 +-
> qemu-img.texi | 2 +-
> ui/spice-display.c | 2 +-
> 20 files changed, 48 insertions(+), 63 deletions(-)
>
> --
> 1.7.10.4
^ permalink raw reply [flat|nested] 15+ messages in thread