* [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables
@ 2011-06-14 17:35 Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
` (9 more replies)
0 siblings, 10 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Switched to FC15 and qemu build with -Werror fails. The reason
is that with gcc 4.6.0, -Werror makes the build fail on
variables that are set but never used.
XXX: In function ‘xxx’:
XXX:XXX:XX: error: variable ‘xx’ set but not used
[-Werror=unused-but-set-variable]
The following patchset removes such variables
from the codebase.
Note: the warning could actually point to a
bug in code. Pls review carefully.
Build tested only.
--
MST
Michael S. Tsirkin (10):
ppce500: move device/vendor/class id to qdev
usb-ehci: move device/vendor/class id to qdev
usb-ehci: remove unused variables
lsi53c895a: remove unused variables
wdt: remove unused variables
kvm: remove unused variables
alpha/translate: remve unused variables
alpha: remove unused variable
exec: remove unused variable
linux-user: remove unused variables
exec.c | 4 ++++
hw/lsi53c895a.c | 2 --
hw/ppce500_pci.c | 13 +++----------
hw/usb-ehci.c | 19 +++++--------------
hw/virtio-pci.h | 8 +++++---
hw/wdt_i6300esb.c | 3 ---
linux-user/flatload.c | 10 ++++++----
linux-user/linuxload.c | 25 +------------------------
linux-user/main.c | 6 +++---
linux-user/signal.c | 5 -----
linux-user/syscall.c | 6 ------
target-alpha/translate.c | 10 +++++++---
target-i386/kvm.c | 3 +--
13 files changed, 35 insertions(+), 79 deletions(-)
--
1.7.5.53.gc233e
^ permalink raw reply [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
@ 2011-06-14 17:35 ` Michael S. Tsirkin
2011-06-14 22:42 ` Isaku Yamahata
2011-06-14 17:35 ` [Qemu-devel] [PATCH 02/10] usb-ehci: " Michael S. Tsirkin
` (8 subsequent siblings)
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/ppce500_pci.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
index 069af96..fc11af4 100644
--- a/hw/ppce500_pci.c
+++ b/hw/ppce500_pci.c
@@ -304,20 +304,13 @@ static int e500_pcihost_initfn(SysBusDevice *dev)
return 0;
}
-static int e500_host_bridge_initfn(PCIDevice *dev)
-{
- pci_config_set_vendor_id(dev->config, PCI_VENDOR_ID_FREESCALE);
- pci_config_set_device_id(dev->config, PCI_DEVICE_ID_MPC8533E);
- pci_config_set_class(dev->config, PCI_CLASS_PROCESSOR_POWERPC);
-
- return 0;
-}
-
static PCIDeviceInfo e500_host_bridge_info = {
.qdev.name = "e500-host-bridge",
.qdev.desc = "Host bridge",
.qdev.size = sizeof(PCIDevice),
- .init = e500_host_bridge_initfn,
+ .vendor_id = PCI_VENDOR_ID_FREESCALE,
+ .device_id = PCI_DEVICE_ID_MPC8533E,
+ .class_id = PCI_CLASS_PROCESSOR_POWERPC,
};
static SysBusDeviceInfo e500_pcihost_info = {
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 02/10] usb-ehci: move device/vendor/class id to qdev
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
@ 2011-06-14 17:35 ` Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
` (7 subsequent siblings)
9 siblings, 0 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/usb-ehci.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index f63519e..4d6989a 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -1945,6 +1945,10 @@ static PCIDeviceInfo ehci_info = {
.qdev.name = "usb-ehci",
.qdev.size = sizeof(EHCIState),
.init = usb_ehci_initfn,
+ .vendor_id = PCI_VENDOR_ID_INTEL,
+ .device_id = PCI_DEVICE_ID_INTEL_82801D,
+ .revision = 0x10,
+ .class_id = PCI_CLASS_SERIAL_USB,
};
static int usb_ehci_initfn(PCIDevice *dev)
@@ -1953,12 +1957,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
uint8_t *pci_conf = s->dev.config;
int i;
- pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
- pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82801D);
- pci_set_byte(&pci_conf[PCI_REVISION_ID], 0x10);
pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);
- pci_config_set_class(pci_conf, PCI_CLASS_SERIAL_USB);
- pci_set_byte(&pci_conf[PCI_HEADER_TYPE], PCI_HEADER_TYPE_NORMAL);
/* capabilities pointer */
pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 02/10] usb-ehci: " Michael S. Tsirkin
@ 2011-06-14 17:35 ` Michael S. Tsirkin
2011-06-15 6:45 ` Gerd Hoffmann
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
` (6 subsequent siblings)
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/usb-ehci.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index 4d6989a..c20ee22 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -523,11 +523,8 @@ static void ehci_detach(USBPort *port)
static void ehci_reset(void *opaque)
{
EHCIState *s = opaque;
- uint8_t *pci_conf;
int i;
- pci_conf = s->dev.config;
-
memset(&s->mmio[OPREGBASE], 0x00, MMIO_SIZE - OPREGBASE);
s->usbcmd = NB_MAXINTRATE << USBCMD_ITC_SH;
@@ -1105,18 +1102,15 @@ static int ehci_process_itd(EHCIState *ehci,
int ret;
int i, j;
int ptr;
- int pid;
int pg;
int len;
int dir;
int devadr;
int endp;
- int maxpkt;
dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION);
devadr = get_field(itd->bufptr[0], ITD_BUFPTR_DEVADDR);
endp = get_field(itd->bufptr[0], ITD_BUFPTR_EP);
- maxpkt = get_field(itd->bufptr[1], ITD_BUFPTR_MAXPKT);
for(i = 0; i < 8; i++) {
if (itd->transact[i] & ITD_XACT_ACTIVE) {
@@ -1136,9 +1130,7 @@ static int ehci_process_itd(EHCIState *ehci,
if (!dir) {
cpu_physical_memory_rw(ptr, &ehci->buffer[0], len, 0);
- pid = USB_TOKEN_OUT;
- } else
- pid = USB_TOKEN_IN;
+ }
ret = USB_RET_NODEV;
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 04/10] lsi53c895a: remove unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (2 preceding siblings ...)
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
@ 2011-06-14 17:35 ` Michael S. Tsirkin
2011-06-15 9:23 ` Stefan Hajnoczi
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
` (5 subsequent siblings)
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/lsi53c895a.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 3b75467..940b43a 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -889,7 +889,6 @@ static void lsi_do_msgout(LSIState *s)
uint8_t msg;
int len;
uint32_t current_tag;
- SCSIDevice *current_dev;
lsi_request *current_req, *p, *p_next;
int id;
@@ -901,7 +900,6 @@ static void lsi_do_msgout(LSIState *s)
current_req = lsi_find_by_tag(s, current_tag);
}
id = (current_tag >> 8) & 0xf;
- current_dev = s->bus.devs[id];
DPRINTF("MSG out len=%d\n", s->dbc);
while (s->dbc) {
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 05/10] wdt: remove unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (3 preceding siblings ...)
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
@ 2011-06-14 17:35 ` Michael S. Tsirkin
2011-06-14 22:47 ` Isaku Yamahata
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
` (4 subsequent siblings)
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/wdt_i6300esb.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c
index bd57fd3..53786ce 100644
--- a/hw/wdt_i6300esb.c
+++ b/hw/wdt_i6300esb.c
@@ -381,7 +381,6 @@ static const VMStateDescription vmstate_i6300esb = {
static int i6300esb_init(PCIDevice *dev)
{
I6300State *d = DO_UPCAST(I6300State, dev, dev);
- uint8_t *pci_conf;
int io_mem;
static CPUReadMemoryFunc * const mem_read[3] = {
i6300esb_mem_readb,
@@ -399,8 +398,6 @@ static int i6300esb_init(PCIDevice *dev)
d->timer = qemu_new_timer_ns(vm_clock, i6300esb_timer_expired, d);
d->previous_reboot_flag = 0;
- pci_conf = d->dev.config;
-
io_mem = cpu_register_io_memory(mem_read, mem_write, d,
DEVICE_NATIVE_ENDIAN);
pci_register_bar_simple(&d->dev, 0, 0x10, 0, io_mem);
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (4 preceding siblings ...)
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
@ 2011-06-14 17:36 ` Michael S. Tsirkin
2011-06-15 7:38 ` Kevin Wolf
2011-06-15 12:44 ` Chris Krumme
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
` (3 subsequent siblings)
9 siblings, 2 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:36 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/virtio-pci.h | 8 +++++---
target-i386/kvm.c | 3 +--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
index a4b5fd3..b518917 100644
--- a/hw/virtio-pci.h
+++ b/hw/virtio-pci.h
@@ -37,7 +37,9 @@ typedef struct {
bool ioeventfd_started;
} VirtIOPCIProxy;
-extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
- uint16_t vendor, uint16_t device,
- uint16_t class_code, uint8_t pif);
+void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
+
+/* Virtio ABI version, if we increment this, we break the guest driver. */
+#define VIRTIO_PCI_ABI_VERSION 0
+
#endif
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index faedc6c..58a70bc 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -970,7 +970,7 @@ static int kvm_get_xsave(CPUState *env)
#ifdef KVM_CAP_XSAVE
struct kvm_xsave* xsave;
int ret, i;
- uint16_t cwd, swd, twd, fop;
+ uint16_t cwd, swd, twd;
if (!kvm_has_xsave()) {
return kvm_get_fpu(env);
@@ -986,7 +986,6 @@ static int kvm_get_xsave(CPUState *env)
cwd = (uint16_t)xsave->region[0];
swd = (uint16_t)(xsave->region[0] >> 16);
twd = (uint16_t)xsave->region[1];
- fop = (uint16_t)(xsave->region[1] >> 16);
env->fpstt = (swd >> 11) & 7;
env->fpus = swd;
env->fpuc = cwd;
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 07/10] alpha/translate: remve unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (5 preceding siblings ...)
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
@ 2011-06-14 17:36 ` Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
` (2 subsequent siblings)
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:36 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
target-alpha/translate.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index ad6c2ca..5d7454c 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -1663,7 +1663,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
uint32_t palcode;
int32_t disp21, disp16, disp12;
uint16_t fn11;
- uint8_t opc, ra, rb, rc, fpfn, fn7, fn2, islit, real_islit;
+ uint8_t opc, ra, rb, rc, fpfn, fn7, islit, real_islit;
uint8_t lit;
ExitStatus ret;
@@ -1685,7 +1685,6 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
fn11 = (insn >> 5) & 0x000007FF;
fpfn = fn11 & 0x3F;
fn7 = (insn >> 5) & 0x0000007F;
- fn2 = (insn >> 5) & 0x00000003;
LOG_DISAS("opc %02x ra %2d rb %2d rc %2d disp16 %6d\n",
opc, ra, rb, rc, disp16);
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 08/10] alpha: remove unused variable
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (6 preceding siblings ...)
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
@ 2011-06-14 17:36 ` Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:36 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
target-alpha/translate.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 5d7454c..936760c 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -1661,7 +1661,10 @@ static void gen_mtpr(int rb, int regno)
static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
{
uint32_t palcode;
- int32_t disp21, disp16, disp12;
+ int32_t disp21, disp16;
+#ifndef CONFIG_USER_ONLY
+ int32_t disp12;
+#endif
uint16_t fn11;
uint8_t opc, ra, rb, rc, fpfn, fn7, islit, real_islit;
uint8_t lit;
@@ -1681,7 +1684,9 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
palcode = insn & 0x03FFFFFF;
disp21 = ((int32_t)((insn & 0x001FFFFF) << 11)) >> 11;
disp16 = (int16_t)(insn & 0x0000FFFF);
+#ifndef CONFIG_USER_ONLY
disp12 = (int32_t)((insn & 0x00000FFF) << 20) >> 20;
+#endif
fn11 = (insn >> 5) & 0x000007FF;
fpfn = fn11 & 0x3F;
fn7 = (insn >> 5) & 0x0000007F;
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 09/10] exec: remove unused variable
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (7 preceding siblings ...)
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
@ 2011-06-14 17:36 ` Michael S. Tsirkin
2011-06-26 11:08 ` Michael S. Tsirkin
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
9 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:36 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
exec.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/exec.c b/exec.c
index 81808f4..b784f08 100644
--- a/exec.c
+++ b/exec.c
@@ -1207,12 +1207,16 @@ static inline void tb_alloc_page(TranslationBlock *tb,
unsigned int n, tb_page_addr_t page_addr)
{
PageDesc *p;
+#if !defined(CONFIG_USER_ONLY)
TranslationBlock *last_first_tb;
+#endif
tb->page_addr[n] = page_addr;
p = page_find_alloc(page_addr >> TARGET_PAGE_BITS, 1);
tb->page_next[n] = p->first_tb;
+#if !defined(CONFIG_USER_ONLY)
last_first_tb = p->first_tb;
+#endif
p->first_tb = (TranslationBlock *)((long)tb | n);
invalidate_page_bitmap(p);
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
` (8 preceding siblings ...)
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
@ 2011-06-14 17:36 ` Michael S. Tsirkin
2011-06-15 8:35 ` Alexander Graf
2011-06-26 11:11 ` Michael S. Tsirkin
9 siblings, 2 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:36 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
Avi Kivity, Aurelien Jarno, Richard Henderson
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
linux-user/flatload.c | 10 ++++++----
linux-user/linuxload.c | 25 +------------------------
linux-user/main.c | 6 +++---
linux-user/signal.c | 5 -----
linux-user/syscall.c | 6 ------
5 files changed, 10 insertions(+), 42 deletions(-)
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index cd7af7c..2933c5f 100644
--- a/linux-user/flatload.c
+++ b/linux-user/flatload.c
@@ -379,12 +379,14 @@ static int load_flat_file(struct linux_binprm * bprm,
abi_long result;
abi_ulong realdatastart = 0;
abi_ulong text_len, data_len, bss_len, stack_len, flags;
- abi_ulong memp = 0; /* for finding the brk area */
abi_ulong extra;
abi_ulong reloc = 0, rp;
int i, rev, relocs = 0;
abi_ulong fpos;
- abi_ulong start_code, end_code;
+ abi_ulong start_code;
+#ifdef DEBUG
+ abi_ulong end_code;
+#endif
abi_ulong indx_len;
hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
@@ -491,7 +493,6 @@ static int load_flat_file(struct linux_binprm * bprm,
}
reloc = datapos + (ntohl(hdr->reloc_start) - text_len);
- memp = realdatastart;
} else {
@@ -506,7 +507,6 @@ static int load_flat_file(struct linux_binprm * bprm,
realdatastart = textpos + ntohl(hdr->data_start);
datapos = realdatastart + indx_len;
reloc = (textpos + ntohl(hdr->reloc_start) + indx_len);
- memp = textpos;
#ifdef CONFIG_BINFMT_ZFLAT
#error code needs checking
@@ -552,7 +552,9 @@ static int load_flat_file(struct linux_binprm * bprm,
/* The main program needs a little extra setup in the task structure */
start_code = textpos + sizeof (struct flat_hdr);
+#ifdef DEBUG
end_code = textpos + text_len;
+#endif
DBG_FLT("%s %s: TEXT=%x-%x DATA=%x-%x BSS=%x-%x\n",
id ? "Lib" : "Load", bprm->filename,
diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
index ac8c486..62ebc7e 100644
--- a/linux-user/linuxload.c
+++ b/linux-user/linuxload.c
@@ -26,22 +26,6 @@ abi_long memcpy_to_target(abi_ulong dest, const void *src,
return 0;
}
-static int in_group_p(gid_t g)
-{
- /* return TRUE if we're in the specified group, FALSE otherwise */
- int ngroup;
- int i;
- gid_t grouplist[NGROUPS];
-
- ngroup = getgroups(NGROUPS, grouplist);
- for(i = 0; i < ngroup; i++) {
- if(grouplist[i] == g) {
- return 1;
- }
- }
- return 0;
-}
-
static int count(char ** vec)
{
int i;
@@ -57,7 +41,7 @@ static int prepare_binprm(struct linux_binprm *bprm)
{
struct stat st;
int mode;
- int retval, id_change;
+ int retval;
if(fstat(bprm->fd, &st) < 0) {
return(-errno);
@@ -73,14 +57,10 @@ static int prepare_binprm(struct linux_binprm *bprm)
bprm->e_uid = geteuid();
bprm->e_gid = getegid();
- id_change = 0;
/* Set-uid? */
if(mode & S_ISUID) {
bprm->e_uid = st.st_uid;
- if(bprm->e_uid != geteuid()) {
- id_change = 1;
- }
}
/* Set-gid? */
@@ -91,9 +71,6 @@ static int prepare_binprm(struct linux_binprm *bprm)
*/
if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) {
bprm->e_gid = st.st_gid;
- if (!in_group_p(bprm->e_gid)) {
- id_change = 1;
- }
}
retval = read(bprm->fd, bprm->buf, BPRM_BUF_SIZE);
diff --git a/linux-user/main.c b/linux-user/main.c
index 04da0a4..9b995e5 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2053,15 +2053,15 @@ void cpu_loop(CPUMIPSState *env)
} else {
int nb_args;
abi_ulong sp_reg;
- abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0;
+ abi_ulong arg5 = 0, arg6 = 0;
nb_args = mips_syscall_args[syscall_num];
sp_reg = env->active_tc.gpr[29];
switch (nb_args) {
/* these arguments are taken from the stack */
/* FIXME - what to do if get_user() fails? */
- case 8: get_user_ual(arg8, sp_reg + 28);
- case 7: get_user_ual(arg7, sp_reg + 24);
+ case 8: /* get_user_ual(arg8, sp_reg + 28); */
+ case 7: /* get_user_ual(arg7, sp_reg + 24); */
case 6: get_user_ual(arg6, sp_reg + 20);
case 5: get_user_ual(arg5, sp_reg + 16);
default:
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 11b25be..685ae61 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -2080,7 +2080,6 @@ long do_sigreturn(CPUState *env)
uint32_t up_psr, pc, npc;
target_sigset_t set;
sigset_t host_set;
- abi_ulong fpu_save_addr;
int err, i;
sf_addr = env->regwptr[UREG_FP];
@@ -2120,8 +2119,6 @@ long do_sigreturn(CPUState *env)
err |= __get_user(env->regwptr[i + UREG_I0], &sf->info.si_regs.u_regs[i+8]);
}
- err |= __get_user(fpu_save_addr, &sf->fpu_save);
-
//if (fpu_save)
// err |= restore_fpu_state(env, fpu_save);
@@ -2228,7 +2225,6 @@ void sparc64_set_context(CPUSPARCState *env)
target_mc_gregset_t *grp;
abi_ulong pc, npc, tstate;
abi_ulong fp, i7, w_addr;
- unsigned char fenab;
int err;
unsigned int i;
@@ -2293,7 +2289,6 @@ void sparc64_set_context(CPUSPARCState *env)
if (put_user(i7, w_addr + offsetof(struct target_reg_window, ins[7]),
abi_ulong) != 0)
goto do_sigsegv;
- err |= __get_user(fenab, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_enab));
err |= __get_user(env->fprs, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_fprs));
{
uint32_t *src, *dst;
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5cb27c7..71395d5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3751,7 +3751,6 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr)
#ifndef TARGET_ABI32
static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
{
- abi_long ret;
abi_ulong val;
int idx;
@@ -3776,7 +3775,6 @@ static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
return -TARGET_EFAULT;
break;
default:
- ret = -TARGET_EINVAL;
break;
}
return 0;
@@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_osf_sigprocmask:
{
abi_ulong mask;
- int how = arg1;
sigset_t set, oldset;
switch(arg1) {
case TARGET_SIG_BLOCK:
- how = SIG_BLOCK;
break;
case TARGET_SIG_UNBLOCK:
- how = SIG_UNBLOCK;
break;
case TARGET_SIG_SETMASK:
- how = SIG_SETMASK;
break;
default:
ret = -TARGET_EINVAL;
--
1.7.5.53.gc233e
^ permalink raw reply related [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 07/10] alpha/translate: remve unused variables
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
@ 2011-06-14 17:47 ` Richard Henderson
0 siblings, 0 replies; 34+ messages in thread
From: Richard Henderson @ 2011-06-14 17:47 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Paul Brook
On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> target-alpha/translate.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
Acked-by: Richard Henderson <rth@twiddle.net>
r~
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 08/10] alpha: remove unused variable
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
@ 2011-06-14 17:47 ` Richard Henderson
2011-06-23 11:47 ` Peter Maydell
0 siblings, 1 reply; 34+ messages in thread
From: Richard Henderson @ 2011-06-14 17:47 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Paul Brook
On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> target-alpha/translate.c | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
Acked-by: Richard Henderson <rth@twiddle.net>
r~
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
@ 2011-06-14 22:42 ` Isaku Yamahata
0 siblings, 0 replies; 34+ messages in thread
From: Isaku Yamahata @ 2011-06-14 22:42 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Richard Henderson, Avi Kivity, Aurelien Jarno,
Paul Brook
On Tue, Jun 14, 2011 at 08:35:20PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/ppce500_pci.c | 13 +++----------
> 1 files changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
> index 069af96..fc11af4 100644
> --- a/hw/ppce500_pci.c
> +++ b/hw/ppce500_pci.c
> @@ -304,20 +304,13 @@ static int e500_pcihost_initfn(SysBusDevice *dev)
> return 0;
> }
>
> -static int e500_host_bridge_initfn(PCIDevice *dev)
> -{
> - pci_config_set_vendor_id(dev->config, PCI_VENDOR_ID_FREESCALE);
> - pci_config_set_device_id(dev->config, PCI_DEVICE_ID_MPC8533E);
> - pci_config_set_class(dev->config, PCI_CLASS_PROCESSOR_POWERPC);
> -
> - return 0;
> -}
> -
> static PCIDeviceInfo e500_host_bridge_info = {
> .qdev.name = "e500-host-bridge",
> .qdev.desc = "Host bridge",
> .qdev.size = sizeof(PCIDevice),
> - .init = e500_host_bridge_initfn,
> + .vendor_id = PCI_VENDOR_ID_FREESCALE,
> + .device_id = PCI_DEVICE_ID_MPC8533E,
> + .class_id = PCI_CLASS_PROCESSOR_POWERPC,
> };
>
> static SysBusDeviceInfo e500_pcihost_info = {
> --
> 1.7.5.53.gc233e
>
Now PCIDeviceInfo::init is NULL. So we want the following patch.
>From 45ea80e32966bf8105e56b7d08926d1e6675ae48 Mon Sep 17 00:00:00 2001
Message-Id: <45ea80e32966bf8105e56b7d08926d1e6675ae48.1308091239.git.yamahata@valinux.co.jp>
In-Reply-To: <cover.1308091239.git.yamahata@valinux.co.jp>
References: <cover.1308091239.git.yamahata@valinux.co.jp>
From: Isaku Yamahata <yamahata@valinux.co.jp>
Date: Wed, 15 Jun 2011 07:37:47 +0900
Subject: [PATCH] pci: don't call qdev pci init method
As pci id initialization is moved to common layer,
some initialization function can be empty.
So don't call init method if NULL.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
hw/pci.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index ba0598b..b904a4e 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1681,10 +1681,12 @@ static int pci_qdev_init(DeviceState *qdev, DeviceInfo *base)
do_pci_unregister_device(pci_dev);
return -1;
}
- rc = info->init(pci_dev);
- if (rc != 0) {
- do_pci_unregister_device(pci_dev);
- return rc;
+ if (info->init) {
+ rc = info->init(pci_dev);
+ if (rc != 0) {
+ do_pci_unregister_device(pci_dev);
+ return rc;
+ }
}
/* rom loading */
--
1.7.1.1
--
yamahata
^ permalink raw reply related [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 05/10] wdt: remove unused variables
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
@ 2011-06-14 22:47 ` Isaku Yamahata
0 siblings, 0 replies; 34+ messages in thread
From: Isaku Yamahata @ 2011-06-14 22:47 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Richard Henderson, Avi Kivity, Aurelien Jarno,
Paul Brook
It seems that I overlooked the variable when pci id conversion.
Acked-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
On Tue, Jun 14, 2011 at 08:35:52PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/wdt_i6300esb.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c
> index bd57fd3..53786ce 100644
> --- a/hw/wdt_i6300esb.c
> +++ b/hw/wdt_i6300esb.c
> @@ -381,7 +381,6 @@ static const VMStateDescription vmstate_i6300esb = {
> static int i6300esb_init(PCIDevice *dev)
> {
> I6300State *d = DO_UPCAST(I6300State, dev, dev);
> - uint8_t *pci_conf;
> int io_mem;
> static CPUReadMemoryFunc * const mem_read[3] = {
> i6300esb_mem_readb,
> @@ -399,8 +398,6 @@ static int i6300esb_init(PCIDevice *dev)
> d->timer = qemu_new_timer_ns(vm_clock, i6300esb_timer_expired, d);
> d->previous_reboot_flag = 0;
>
> - pci_conf = d->dev.config;
> -
> io_mem = cpu_register_io_memory(mem_read, mem_write, d,
> DEVICE_NATIVE_ENDIAN);
> pci_register_bar_simple(&d->dev, 0, 0x10, 0, io_mem);
> --
> 1.7.5.53.gc233e
>
--
yamahata
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
@ 2011-06-15 6:45 ` Gerd Hoffmann
0 siblings, 0 replies; 34+ messages in thread
From: Gerd Hoffmann @ 2011-06-15 6:45 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Paul Brook, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Richard Henderson
On 06/14/11 19:35, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
usb patch queue has a simliar fix already.
I'd suggest to drop this to reduce merge conflicts.
cheers,
Gerd
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
@ 2011-06-15 7:38 ` Kevin Wolf
2011-06-15 8:25 ` Michael S. Tsirkin
2011-06-15 12:44 ` Chris Krumme
1 sibling, 1 reply; 34+ messages in thread
From: Kevin Wolf @ 2011-06-15 7:38 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Alexander Graf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Isaku Yamahata, Jan Kiszka, Paul Brook, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Richard Henderson
Am 14.06.2011 19:36, schrieb Michael S. Tsirkin:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/virtio-pci.h | 8 +++++---
> target-i386/kvm.c | 3 +--
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
> index a4b5fd3..b518917 100644
> --- a/hw/virtio-pci.h
> +++ b/hw/virtio-pci.h
> @@ -37,7 +37,9 @@ typedef struct {
> bool ioeventfd_started;
> } VirtIOPCIProxy;
>
> -extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
> - uint16_t vendor, uint16_t device,
> - uint16_t class_code, uint8_t pif);
> +void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
> +
> +/* Virtio ABI version, if we increment this, we break the guest driver. */
> +#define VIRTIO_PCI_ABI_VERSION 0
> +
> #endif
Is this hunk there intentionally?
Kevin
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index faedc6c..58a70bc 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -970,7 +970,7 @@ static int kvm_get_xsave(CPUState *env)
> #ifdef KVM_CAP_XSAVE
> struct kvm_xsave* xsave;
> int ret, i;
> - uint16_t cwd, swd, twd, fop;
> + uint16_t cwd, swd, twd;
>
> if (!kvm_has_xsave()) {
> return kvm_get_fpu(env);
> @@ -986,7 +986,6 @@ static int kvm_get_xsave(CPUState *env)
> cwd = (uint16_t)xsave->region[0];
> swd = (uint16_t)(xsave->region[0] >> 16);
> twd = (uint16_t)xsave->region[1];
> - fop = (uint16_t)(xsave->region[1] >> 16);
> env->fpstt = (swd >> 11) & 7;
> env->fpus = swd;
> env->fpuc = cwd;
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-15 7:38 ` Kevin Wolf
@ 2011-06-15 8:25 ` Michael S. Tsirkin
2011-06-15 8:42 ` Jan Kiszka
0 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-15 8:25 UTC (permalink / raw)
To: Kevin Wolf
Cc: Alexander Graf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Isaku Yamahata, Jan Kiszka, Paul Brook, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Richard Henderson
On Wed, Jun 15, 2011 at 09:38:39AM +0200, Kevin Wolf wrote:
> Am 14.06.2011 19:36, schrieb Michael S. Tsirkin:
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> > hw/virtio-pci.h | 8 +++++---
> > target-i386/kvm.c | 3 +--
> > 2 files changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
> > index a4b5fd3..b518917 100644
> > --- a/hw/virtio-pci.h
> > +++ b/hw/virtio-pci.h
> > @@ -37,7 +37,9 @@ typedef struct {
> > bool ioeventfd_started;
> > } VirtIOPCIProxy;
> >
> > -extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
> > - uint16_t vendor, uint16_t device,
> > - uint16_t class_code, uint8_t pif);
> > +void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
> > +
> > +/* Virtio ABI version, if we increment this, we break the guest driver. */
> > +#define VIRTIO_PCI_ABI_VERSION 0
> > +
> > #endif
>
> Is this hunk there intentionally?
>
> Kevin
Sorry, this belongs in another patch.
Thanks for pointing this out.
Otherwise ack?
>
> > diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> > index faedc6c..58a70bc 100644
> > --- a/target-i386/kvm.c
> > +++ b/target-i386/kvm.c
> > @@ -970,7 +970,7 @@ static int kvm_get_xsave(CPUState *env)
> > #ifdef KVM_CAP_XSAVE
> > struct kvm_xsave* xsave;
> > int ret, i;
> > - uint16_t cwd, swd, twd, fop;
> > + uint16_t cwd, swd, twd;
> >
> > if (!kvm_has_xsave()) {
> > return kvm_get_fpu(env);
> > @@ -986,7 +986,6 @@ static int kvm_get_xsave(CPUState *env)
> > cwd = (uint16_t)xsave->region[0];
> > swd = (uint16_t)(xsave->region[0] >> 16);
> > twd = (uint16_t)xsave->region[1];
> > - fop = (uint16_t)(xsave->region[1] >> 16);
> > env->fpstt = (swd >> 11) & 7;
> > env->fpus = swd;
> > env->fpuc = cwd;
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
@ 2011-06-15 8:35 ` Alexander Graf
2011-06-15 8:55 ` Michael S. Tsirkin
` (2 more replies)
2011-06-26 11:11 ` Michael S. Tsirkin
1 sibling, 3 replies; 34+ messages in thread
From: Alexander Graf @ 2011-06-15 8:35 UTC (permalink / raw)
To: Michael S.Tsirkin
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Richard Henderson, Avi Kivity, Aurelien Jarno,
Paul Brook
On 14.06.2011, at 19:36, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> linux-user/flatload.c | 10 ++++++----
> linux-user/linuxload.c | 25 +------------------------
> linux-user/main.c | 6 +++---
> linux-user/signal.c | 5 -----
> linux-user/syscall.c | 6 ------
> 5 files changed, 10 insertions(+), 42 deletions(-)
>
> diff --git a/linux-user/flatload.c b/linux-user/flatload.c
> index cd7af7c..2933c5f 100644
> --- a/linux-user/flatload.c
> +++ b/linux-user/flatload.c
> @@ -379,12 +379,14 @@ static int load_flat_file(struct linux_binprm * bprm,
> abi_long result;
> abi_ulong realdatastart = 0;
> abi_ulong text_len, data_len, bss_len, stack_len, flags;
> - abi_ulong memp = 0; /* for finding the brk area */
> abi_ulong extra;
> abi_ulong reloc = 0, rp;
> int i, rev, relocs = 0;
> abi_ulong fpos;
> - abi_ulong start_code, end_code;
> + abi_ulong start_code;
> +#ifdef DEBUG
> + abi_ulong end_code;
> +#endif
> abi_ulong indx_len;
>
> hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
> @@ -491,7 +493,6 @@ static int load_flat_file(struct linux_binprm * bprm,
> }
>
> reloc = datapos + (ntohl(hdr->reloc_start) - text_len);
> - memp = realdatastart;
>
> } else {
>
> @@ -506,7 +507,6 @@ static int load_flat_file(struct linux_binprm * bprm,
> realdatastart = textpos + ntohl(hdr->data_start);
> datapos = realdatastart + indx_len;
> reloc = (textpos + ntohl(hdr->reloc_start) + indx_len);
> - memp = textpos;
>
> #ifdef CONFIG_BINFMT_ZFLAT
> #error code needs checking
> @@ -552,7 +552,9 @@ static int load_flat_file(struct linux_binprm * bprm,
>
> /* The main program needs a little extra setup in the task structure */
> start_code = textpos + sizeof (struct flat_hdr);
> +#ifdef DEBUG
> end_code = textpos + text_len;
> +#endif
>
> DBG_FLT("%s %s: TEXT=%x-%x DATA=%x-%x BSS=%x-%x\n",
> id ? "Lib" : "Load", bprm->filename,
> diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
> index ac8c486..62ebc7e 100644
> --- a/linux-user/linuxload.c
> +++ b/linux-user/linuxload.c
> @@ -26,22 +26,6 @@ abi_long memcpy_to_target(abi_ulong dest, const void *src,
> return 0;
> }
>
> -static int in_group_p(gid_t g)
> -{
> - /* return TRUE if we're in the specified group, FALSE otherwise */
> - int ngroup;
> - int i;
> - gid_t grouplist[NGROUPS];
> -
> - ngroup = getgroups(NGROUPS, grouplist);
> - for(i = 0; i < ngroup; i++) {
> - if(grouplist[i] == g) {
> - return 1;
> - }
> - }
> - return 0;
> -}
> -
> static int count(char ** vec)
> {
> int i;
> @@ -57,7 +41,7 @@ static int prepare_binprm(struct linux_binprm *bprm)
> {
> struct stat st;
> int mode;
> - int retval, id_change;
> + int retval;
>
> if(fstat(bprm->fd, &st) < 0) {
> return(-errno);
> @@ -73,14 +57,10 @@ static int prepare_binprm(struct linux_binprm *bprm)
>
> bprm->e_uid = geteuid();
> bprm->e_gid = getegid();
> - id_change = 0;
>
> /* Set-uid? */
> if(mode & S_ISUID) {
> bprm->e_uid = st.st_uid;
> - if(bprm->e_uid != geteuid()) {
> - id_change = 1;
> - }
> }
>
> /* Set-gid? */
> @@ -91,9 +71,6 @@ static int prepare_binprm(struct linux_binprm *bprm)
> */
> if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) {
> bprm->e_gid = st.st_gid;
> - if (!in_group_p(bprm->e_gid)) {
> - id_change = 1;
> - }
> }
>
> retval = read(bprm->fd, bprm->buf, BPRM_BUF_SIZE);
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 04da0a4..9b995e5 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -2053,15 +2053,15 @@ void cpu_loop(CPUMIPSState *env)
> } else {
> int nb_args;
> abi_ulong sp_reg;
> - abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0;
> + abi_ulong arg5 = 0, arg6 = 0;
>
> nb_args = mips_syscall_args[syscall_num];
> sp_reg = env->active_tc.gpr[29];
> switch (nb_args) {
> /* these arguments are taken from the stack */
> /* FIXME - what to do if get_user() fails? */
> - case 8: get_user_ual(arg8, sp_reg + 28);
> - case 7: get_user_ual(arg7, sp_reg + 24);
> + case 8: /* get_user_ual(arg8, sp_reg + 28); */
> + case 7: /* get_user_ual(arg7, sp_reg + 24); */
I'd prefer to see these and the respective variable definitions #if 0'd with a comment, stating that they're currently unused.
> case 6: get_user_ual(arg6, sp_reg + 20);
> case 5: get_user_ual(arg5, sp_reg + 16);
> default:
> diff --git a/linux-user/signal.c b/linux-user/signal.c
> index 11b25be..685ae61 100644
> --- a/linux-user/signal.c
> +++ b/linux-user/signal.c
> @@ -2080,7 +2080,6 @@ long do_sigreturn(CPUState *env)
> uint32_t up_psr, pc, npc;
> target_sigset_t set;
> sigset_t host_set;
> - abi_ulong fpu_save_addr;
> int err, i;
>
> sf_addr = env->regwptr[UREG_FP];
> @@ -2120,8 +2119,6 @@ long do_sigreturn(CPUState *env)
> err |= __get_user(env->regwptr[i + UREG_I0], &sf->info.si_regs.u_regs[i+8]);
> }
>
> - err |= __get_user(fpu_save_addr, &sf->fpu_save);
This probably goes along the same line. Please keep the code around - it seems related to the commented out code below.
> -
> //if (fpu_save)
> // err |= restore_fpu_state(env, fpu_save);
>
> @@ -2228,7 +2225,6 @@ void sparc64_set_context(CPUSPARCState *env)
> target_mc_gregset_t *grp;
> abi_ulong pc, npc, tstate;
> abi_ulong fp, i7, w_addr;
> - unsigned char fenab;
> int err;
> unsigned int i;
>
> @@ -2293,7 +2289,6 @@ void sparc64_set_context(CPUSPARCState *env)
> if (put_user(i7, w_addr + offsetof(struct target_reg_window, ins[7]),
> abi_ulong) != 0)
> goto do_sigsegv;
> - err |= __get_user(fenab, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_enab));
not sure here - might be the same as above?
> err |= __get_user(env->fprs, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_fprs));
> {
> uint32_t *src, *dst;
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 5cb27c7..71395d5 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -3751,7 +3751,6 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr)
> #ifndef TARGET_ABI32
> static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
> {
> - abi_long ret;
> abi_ulong val;
> int idx;
>
> @@ -3776,7 +3775,6 @@ static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
> return -TARGET_EFAULT;
> break;
> default:
> - ret = -TARGET_EINVAL;
I'm fairly sure this was supposed to be "return -TARGET_EINVAL".
> break;
> }
> return 0;
> @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> case TARGET_NR_osf_sigprocmask:
> {
> abi_ulong mask;
> - int how = arg1;
> sigset_t set, oldset;
>
> switch(arg1) {
> case TARGET_SIG_BLOCK:
> - how = SIG_BLOCK;
> break;
> case TARGET_SIG_UNBLOCK:
> - how = SIG_UNBLOCK;
> break;
> case TARGET_SIG_SETMASK:
> - how = SIG_SETMASK;
why go through the effort of setting "how" and then not using it? I'm pretty sure this is a bug as well. A few lines down is the following code:
sigprocmask(arg1, &set, &oldset);
which in TARGET_NR_sigprocmask would be:
ret = get_errno(sigprocmask(how, &set, &oldset));
So we end up sending guest masks to the host. Richard, this is Alpha specific code. Mind to double-check?
Alex
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-15 8:25 ` Michael S. Tsirkin
@ 2011-06-15 8:42 ` Jan Kiszka
0 siblings, 0 replies; 34+ messages in thread
From: Jan Kiszka @ 2011-06-15 8:42 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm@vger.kernel.org, Isaku Yamahata, Riku Voipio,
qemu-devel@nongnu.org, Christoph Hellwig, Blue Swirl,
Alex Williamson, Gerd Hoffmann, Paolo Bonzini, Richard Henderson,
Avi Kivity, Aurelien Jarno, Paul Brook
On 2011-06-15 10:25, Michael S. Tsirkin wrote:
> On Wed, Jun 15, 2011 at 09:38:39AM +0200, Kevin Wolf wrote:
>> Am 14.06.2011 19:36, schrieb Michael S. Tsirkin:
>>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>>> ---
>>> hw/virtio-pci.h | 8 +++++---
>>> target-i386/kvm.c | 3 +--
>>> 2 files changed, 6 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
>>> index a4b5fd3..b518917 100644
>>> --- a/hw/virtio-pci.h
>>> +++ b/hw/virtio-pci.h
>>> @@ -37,7 +37,9 @@ typedef struct {
>>> bool ioeventfd_started;
>>> } VirtIOPCIProxy;
>>>
>>> -extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
>>> - uint16_t vendor, uint16_t device,
>>> - uint16_t class_code, uint8_t pif);
>>> +void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
>>> +
>>> +/* Virtio ABI version, if we increment this, we break the guest driver. */
>>> +#define VIRTIO_PCI_ABI_VERSION 0
>>> +
>>> #endif
>>
>> Is this hunk there intentionally?
>>
>> Kevin
>
> Sorry, this belongs in another patch.
> Thanks for pointing this out.
> Otherwise ack?
I've still the true fix pending, but there are concerns about the
associated savevm version increase for the CPU. Not sure what will
happen the next days till -rc0, so we may also go with any of these
removal patches (you weren't the first by far).
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-15 8:35 ` Alexander Graf
@ 2011-06-15 8:55 ` Michael S. Tsirkin
2011-06-15 14:32 ` Richard Henderson
2011-06-15 16:51 ` Peter Maydell
2 siblings, 0 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-15 8:55 UTC (permalink / raw)
To: Alexander Graf
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Richard Henderson, Avi Kivity, Aurelien Jarno,
Paul Brook
On Wed, Jun 15, 2011 at 10:35:19AM +0200, Alexander Graf wrote:
>
> On 14.06.2011, at 19:36, Michael S. Tsirkin wrote:
>
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> > linux-user/flatload.c | 10 ++++++----
> > linux-user/linuxload.c | 25 +------------------------
> > linux-user/main.c | 6 +++---
> > linux-user/signal.c | 5 -----
> > linux-user/syscall.c | 6 ------
> > 5 files changed, 10 insertions(+), 42 deletions(-)
> >
> > diff --git a/linux-user/flatload.c b/linux-user/flatload.c
> > index cd7af7c..2933c5f 100644
> > --- a/linux-user/flatload.c
> > +++ b/linux-user/flatload.c
> > @@ -379,12 +379,14 @@ static int load_flat_file(struct linux_binprm * bprm,
> > abi_long result;
> > abi_ulong realdatastart = 0;
> > abi_ulong text_len, data_len, bss_len, stack_len, flags;
> > - abi_ulong memp = 0; /* for finding the brk area */
> > abi_ulong extra;
> > abi_ulong reloc = 0, rp;
> > int i, rev, relocs = 0;
> > abi_ulong fpos;
> > - abi_ulong start_code, end_code;
> > + abi_ulong start_code;
> > +#ifdef DEBUG
> > + abi_ulong end_code;
> > +#endif
> > abi_ulong indx_len;
> >
> > hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
> > @@ -491,7 +493,6 @@ static int load_flat_file(struct linux_binprm * bprm,
> > }
> >
> > reloc = datapos + (ntohl(hdr->reloc_start) - text_len);
> > - memp = realdatastart;
> >
> > } else {
> >
> > @@ -506,7 +507,6 @@ static int load_flat_file(struct linux_binprm * bprm,
> > realdatastart = textpos + ntohl(hdr->data_start);
> > datapos = realdatastart + indx_len;
> > reloc = (textpos + ntohl(hdr->reloc_start) + indx_len);
> > - memp = textpos;
> >
> > #ifdef CONFIG_BINFMT_ZFLAT
> > #error code needs checking
> > @@ -552,7 +552,9 @@ static int load_flat_file(struct linux_binprm * bprm,
> >
> > /* The main program needs a little extra setup in the task structure */
> > start_code = textpos + sizeof (struct flat_hdr);
> > +#ifdef DEBUG
> > end_code = textpos + text_len;
> > +#endif
> >
> > DBG_FLT("%s %s: TEXT=%x-%x DATA=%x-%x BSS=%x-%x\n",
> > id ? "Lib" : "Load", bprm->filename,
> > diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
> > index ac8c486..62ebc7e 100644
> > --- a/linux-user/linuxload.c
> > +++ b/linux-user/linuxload.c
> > @@ -26,22 +26,6 @@ abi_long memcpy_to_target(abi_ulong dest, const void *src,
> > return 0;
> > }
> >
> > -static int in_group_p(gid_t g)
> > -{
> > - /* return TRUE if we're in the specified group, FALSE otherwise */
> > - int ngroup;
> > - int i;
> > - gid_t grouplist[NGROUPS];
> > -
> > - ngroup = getgroups(NGROUPS, grouplist);
> > - for(i = 0; i < ngroup; i++) {
> > - if(grouplist[i] == g) {
> > - return 1;
> > - }
> > - }
> > - return 0;
> > -}
> > -
> > static int count(char ** vec)
> > {
> > int i;
> > @@ -57,7 +41,7 @@ static int prepare_binprm(struct linux_binprm *bprm)
> > {
> > struct stat st;
> > int mode;
> > - int retval, id_change;
> > + int retval;
> >
> > if(fstat(bprm->fd, &st) < 0) {
> > return(-errno);
> > @@ -73,14 +57,10 @@ static int prepare_binprm(struct linux_binprm *bprm)
> >
> > bprm->e_uid = geteuid();
> > bprm->e_gid = getegid();
> > - id_change = 0;
> >
> > /* Set-uid? */
> > if(mode & S_ISUID) {
> > bprm->e_uid = st.st_uid;
> > - if(bprm->e_uid != geteuid()) {
> > - id_change = 1;
> > - }
> > }
> >
> > /* Set-gid? */
> > @@ -91,9 +71,6 @@ static int prepare_binprm(struct linux_binprm *bprm)
> > */
> > if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) {
> > bprm->e_gid = st.st_gid;
> > - if (!in_group_p(bprm->e_gid)) {
> > - id_change = 1;
> > - }
> > }
> >
> > retval = read(bprm->fd, bprm->buf, BPRM_BUF_SIZE);
> > diff --git a/linux-user/main.c b/linux-user/main.c
> > index 04da0a4..9b995e5 100644
> > --- a/linux-user/main.c
> > +++ b/linux-user/main.c
> > @@ -2053,15 +2053,15 @@ void cpu_loop(CPUMIPSState *env)
> > } else {
> > int nb_args;
> > abi_ulong sp_reg;
> > - abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0;
> > + abi_ulong arg5 = 0, arg6 = 0;
> >
> > nb_args = mips_syscall_args[syscall_num];
> > sp_reg = env->active_tc.gpr[29];
> > switch (nb_args) {
> > /* these arguments are taken from the stack */
> > /* FIXME - what to do if get_user() fails? */
> > - case 8: get_user_ual(arg8, sp_reg + 28);
> > - case 7: get_user_ual(arg7, sp_reg + 24);
> > + case 8: /* get_user_ual(arg8, sp_reg + 28); */
> > + case 7: /* get_user_ual(arg7, sp_reg + 24); */
>
> I'd prefer to see these and the respective variable definitions #if 0'd with a comment, stating that they're currently unused.
>
> > case 6: get_user_ual(arg6, sp_reg + 20);
> > case 5: get_user_ual(arg5, sp_reg + 16);
> > default:
> > diff --git a/linux-user/signal.c b/linux-user/signal.c
> > index 11b25be..685ae61 100644
> > --- a/linux-user/signal.c
> > +++ b/linux-user/signal.c
> > @@ -2080,7 +2080,6 @@ long do_sigreturn(CPUState *env)
> > uint32_t up_psr, pc, npc;
> > target_sigset_t set;
> > sigset_t host_set;
> > - abi_ulong fpu_save_addr;
> > int err, i;
> >
> > sf_addr = env->regwptr[UREG_FP];
> > @@ -2120,8 +2119,6 @@ long do_sigreturn(CPUState *env)
> > err |= __get_user(env->regwptr[i + UREG_I0], &sf->info.si_regs.u_regs[i+8]);
> > }
> >
> > - err |= __get_user(fpu_save_addr, &sf->fpu_save);
>
> This probably goes along the same line. Please keep the code around - it seems related to the commented out code below.
>
> > -
> > //if (fpu_save)
> > // err |= restore_fpu_state(env, fpu_save);
> >
> > @@ -2228,7 +2225,6 @@ void sparc64_set_context(CPUSPARCState *env)
> > target_mc_gregset_t *grp;
> > abi_ulong pc, npc, tstate;
> > abi_ulong fp, i7, w_addr;
> > - unsigned char fenab;
> > int err;
> > unsigned int i;
> >
> > @@ -2293,7 +2289,6 @@ void sparc64_set_context(CPUSPARCState *env)
> > if (put_user(i7, w_addr + offsetof(struct target_reg_window, ins[7]),
> > abi_ulong) != 0)
> > goto do_sigsegv;
> > - err |= __get_user(fenab, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_enab));
>
> not sure here - might be the same as above?
>
> > err |= __get_user(env->fprs, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_fprs));
> > {
> > uint32_t *src, *dst;
> > diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> > index 5cb27c7..71395d5 100644
> > --- a/linux-user/syscall.c
> > +++ b/linux-user/syscall.c
> > @@ -3751,7 +3751,6 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr)
> > #ifndef TARGET_ABI32
> > static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
> > {
> > - abi_long ret;
> > abi_ulong val;
> > int idx;
> >
> > @@ -3776,7 +3775,6 @@ static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
> > return -TARGET_EFAULT;
> > break;
> > default:
> > - ret = -TARGET_EINVAL;
>
> I'm fairly sure this was supposed to be "return -TARGET_EINVAL".
>
> > break;
> > }
> > return 0;
> > @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> > case TARGET_NR_osf_sigprocmask:
> > {
> > abi_ulong mask;
> > - int how = arg1;
> > sigset_t set, oldset;
> >
> > switch(arg1) {
> > case TARGET_SIG_BLOCK:
> > - how = SIG_BLOCK;
> > break;
> > case TARGET_SIG_UNBLOCK:
> > - how = SIG_UNBLOCK;
> > break;
> > case TARGET_SIG_SETMASK:
> > - how = SIG_SETMASK;
>
> why go through the effort of setting "how" and then not using it? I'm pretty sure this is a bug as well. A few lines down is the following code:
>
> sigprocmask(arg1, &set, &oldset);
>
> which in TARGET_NR_sigprocmask would be:
>
> ret = get_errno(sigprocmask(how, &set, &oldset));
>
> So we end up sending guest masks to the host. Richard, this is Alpha specific code. Mind to double-check?
>
>
> Alex
Could you guys fix these the way you like?
I just want my build to pass ...
--
MST
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 04/10] lsi53c895a: remove unused variables
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
@ 2011-06-15 9:23 ` Stefan Hajnoczi
0 siblings, 0 replies; 34+ messages in thread
From: Stefan Hajnoczi @ 2011-06-15 9:23 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti, kvm,
Isaku Yamahata, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Richard Henderson, Avi Kivity, Aurelien Jarno,
Paul Brook
On Tue, Jun 14, 2011 at 08:35:44PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/lsi53c895a.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
This one is already in the trivial-patches tree.
Stefan
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
2011-06-15 7:38 ` Kevin Wolf
@ 2011-06-15 12:44 ` Chris Krumme
2011-06-15 18:29 ` Michael S. Tsirkin
1 sibling, 1 reply; 34+ messages in thread
From: Chris Krumme @ 2011-06-15 12:44 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Anthony Liguori, Riku Voipio, Stefan Hajnoczi, kvm,
Jan Kiszka, Marcelo Tosatti, qemu-devel, Alexander Graf,
Blue Swirl, Isaku Yamahata, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Avi Kivity, Richard Henderson, Christoph Hellwig,
Aurelien Jarno, Paul Brook
On 06/14/2011 12:36 PM, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
> ---
> hw/virtio-pci.h | 8 +++++---
> target-i386/kvm.c | 3 +--
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
> index a4b5fd3..b518917 100644
> --- a/hw/virtio-pci.h
> +++ b/hw/virtio-pci.h
> @@ -37,7 +37,9 @@ typedef struct {
> bool ioeventfd_started;
> } VirtIOPCIProxy;
>
> -extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
> - uint16_t vendor, uint16_t device,
> - uint16_t class_code, uint8_t pif);
> +void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
Hello MST,
The above change shows why we should be including a header, rather than
having private prototypes (w/bitrot).
> +
> +/* Virtio ABI version, if we increment this, we break the guest driver. */
> +#define VIRTIO_PCI_ABI_VERSION 0
> +
This change seems unrelated.
Thanks
Chris
> #endif
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index faedc6c..58a70bc 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -970,7 +970,7 @@ static int kvm_get_xsave(CPUState *env)
> #ifdef KVM_CAP_XSAVE
> struct kvm_xsave* xsave;
> int ret, i;
> - uint16_t cwd, swd, twd, fop;
> + uint16_t cwd, swd, twd;
>
> if (!kvm_has_xsave()) {
> return kvm_get_fpu(env);
> @@ -986,7 +986,6 @@ static int kvm_get_xsave(CPUState *env)
> cwd = (uint16_t)xsave->region[0];
> swd = (uint16_t)(xsave->region[0]>> 16);
> twd = (uint16_t)xsave->region[1];
> - fop = (uint16_t)(xsave->region[1]>> 16);
> env->fpstt = (swd>> 11)& 7;
> env->fpus = swd;
> env->fpuc = cwd;
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-15 8:35 ` Alexander Graf
2011-06-15 8:55 ` Michael S. Tsirkin
@ 2011-06-15 14:32 ` Richard Henderson
2011-06-15 18:40 ` Michael S. Tsirkin
2011-06-15 16:51 ` Peter Maydell
2 siblings, 1 reply; 34+ messages in thread
From: Richard Henderson @ 2011-06-15 14:32 UTC (permalink / raw)
To: Alexander Graf
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Michael S.Tsirkin, Jan Kiszka, Riku Voipio, qemu-devel,
Christoph Hellwig, Blue Swirl, Alex Williamson, Isaku Yamahata,
Paul Brook, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Gerd Hoffmann
On 06/15/2011 01:35 AM, Alexander Graf wrote:
>> - abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0;
>> + abi_ulong arg5 = 0, arg6 = 0;
>>
>> nb_args = mips_syscall_args[syscall_num];
>> sp_reg = env->active_tc.gpr[29];
>> switch (nb_args) {
>> /* these arguments are taken from the stack */
>> /* FIXME - what to do if get_user() fails? */
>> - case 8: get_user_ual(arg8, sp_reg + 28);
>> - case 7: get_user_ual(arg7, sp_reg + 24);
>> + case 8: /* get_user_ual(arg8, sp_reg + 28); */
>> + case 7: /* get_user_ual(arg7, sp_reg + 24); */
>
> I'd prefer to see these and the respective variable definitions #if
> 0'd with a comment, stating that they're currently unused.
I'd prefer not to see if 0 code. Better, I think, to mark the
variables as __attribute__((unused)) with that same comment.
>> @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
>> case TARGET_NR_osf_sigprocmask:
>> {
>> abi_ulong mask;
>> - int how = arg1;
>> sigset_t set, oldset;
>>
>> switch(arg1) {
>> case TARGET_SIG_BLOCK:
>> - how = SIG_BLOCK;
>> break;
>> case TARGET_SIG_UNBLOCK:
>> - how = SIG_UNBLOCK;
>> break;
>> case TARGET_SIG_SETMASK:
>> - how = SIG_SETMASK;
>
> why go through the effort of setting "how" and then not using it? I'm
> pretty sure this is a bug as well. A few lines down is the following
> code:
>
> sigprocmask(arg1, &set, &oldset);
>
> which in TARGET_NR_sigprocmask would be:
>
> ret = get_errno(sigprocmask(how, &set, &oldset));
>
> So we end up sending guest masks to the host. Richard, this is Alpha
> specific code. Mind to double-check?
I remember fixing this before. Perhaps it was in a patch tree that
never got pulled...
r~
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-15 8:35 ` Alexander Graf
2011-06-15 8:55 ` Michael S. Tsirkin
2011-06-15 14:32 ` Richard Henderson
@ 2011-06-15 16:51 ` Peter Maydell
2 siblings, 0 replies; 34+ messages in thread
From: Peter Maydell @ 2011-06-15 16:51 UTC (permalink / raw)
To: Alexander Graf
Cc: Kevin Wolf, Anthony Liguori, Riku Voipio, Stefan Hajnoczi, kvm,
Michael S.Tsirkin, Jan Kiszka, Paul Brook, Marcelo Tosatti,
qemu-devel, Blue Swirl, Isaku Yamahata, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Avi Kivity, Christoph Hellwig,
Aurelien Jarno, Richard Henderson
On 15 June 2011 09:35, Alexander Graf <agraf@suse.de> wrote:
>
> On 14.06.2011, at 19:36, Michael S. Tsirkin wrote:
>> return 0;
>> @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
>> case TARGET_NR_osf_sigprocmask:
>> {
>> abi_ulong mask;
>> - int how = arg1;
>> sigset_t set, oldset;
>>
>> switch(arg1) {
>> case TARGET_SIG_BLOCK:
>> - how = SIG_BLOCK;
>> break;
>> case TARGET_SIG_UNBLOCK:
>> - how = SIG_UNBLOCK;
>> break;
>> case TARGET_SIG_SETMASK:
>> - how = SIG_SETMASK;
>
> why go through the effort of setting "how" and then not using it? I'm pretty sure this is a bug as well. A few lines down is the following code:
>
> sigprocmask(arg1, &set, &oldset);
>
> which in TARGET_NR_sigprocmask would be:
>
> ret = get_errno(sigprocmask(how, &set, &oldset));
>
> So we end up sending guest masks to the host.
Yes, this change is wrong. We've had a better version of these
fixes posted to the list already by Juan:
http://patchwork.ozlabs.org/patch/98376/
at least some of which have already been reviewed.
-- PMM
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables
2011-06-15 12:44 ` Chris Krumme
@ 2011-06-15 18:29 ` Michael S. Tsirkin
0 siblings, 0 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-15 18:29 UTC (permalink / raw)
To: Chris Krumme
Cc: Kevin Wolf, Anthony Liguori, Riku Voipio, Stefan Hajnoczi, kvm,
Jan Kiszka, Marcelo Tosatti, qemu-devel, Alexander Graf,
Blue Swirl, Isaku Yamahata, Alex Williamson, Gerd Hoffmann,
Paolo Bonzini, Avi Kivity, Richard Henderson, Christoph Hellwig,
Aurelien Jarno, Paul Brook
On Wed, Jun 15, 2011 at 07:44:48AM -0500, Chris Krumme wrote:
> On 06/14/2011 12:36 PM, Michael S. Tsirkin wrote:
> >Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
> >---
> > hw/virtio-pci.h | 8 +++++---
> > target-i386/kvm.c | 3 +--
> > 2 files changed, 6 insertions(+), 5 deletions(-)
> >
> >diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
> >index a4b5fd3..b518917 100644
> >--- a/hw/virtio-pci.h
> >+++ b/hw/virtio-pci.h
> >@@ -37,7 +37,9 @@ typedef struct {
> > bool ioeventfd_started;
> > } VirtIOPCIProxy;
> >
> >-extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
> >- uint16_t vendor, uint16_t device,
> >- uint16_t class_code, uint8_t pif);
> >+void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
>
> Hello MST,
>
> The above change shows why we should be including a header, rather
> than having private prototypes (w/bitrot).
Which header?
> >+
> >+/* Virtio ABI version, if we increment this, we break the guest driver. */
> >+#define VIRTIO_PCI_ABI_VERSION 0
> >+
>
> This change seems unrelated.
>
> Thanks
>
> Chris
Yes.
> > #endif
> >diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> >index faedc6c..58a70bc 100644
> >--- a/target-i386/kvm.c
> >+++ b/target-i386/kvm.c
> >@@ -970,7 +970,7 @@ static int kvm_get_xsave(CPUState *env)
> > #ifdef KVM_CAP_XSAVE
> > struct kvm_xsave* xsave;
> > int ret, i;
> >- uint16_t cwd, swd, twd, fop;
> >+ uint16_t cwd, swd, twd;
> >
> > if (!kvm_has_xsave()) {
> > return kvm_get_fpu(env);
> >@@ -986,7 +986,6 @@ static int kvm_get_xsave(CPUState *env)
> > cwd = (uint16_t)xsave->region[0];
> > swd = (uint16_t)(xsave->region[0]>> 16);
> > twd = (uint16_t)xsave->region[1];
> >- fop = (uint16_t)(xsave->region[1]>> 16);
> > env->fpstt = (swd>> 11)& 7;
> > env->fpus = swd;
> > env->fpuc = cwd;
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-15 14:32 ` Richard Henderson
@ 2011-06-15 18:40 ` Michael S. Tsirkin
0 siblings, 0 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-15 18:40 UTC (permalink / raw)
To: Richard Henderson
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Stefan Hajnoczi,
kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio, Alexander Graf,
qemu-devel, Blue Swirl, Alex Williamson, Paul Brook,
Paolo Bonzini, Christoph Hellwig, Avi Kivity, Aurelien Jarno,
Gerd Hoffmann
On Wed, Jun 15, 2011 at 07:32:50AM -0700, Richard Henderson wrote:
> On 06/15/2011 01:35 AM, Alexander Graf wrote:
> >> - abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0;
> >> + abi_ulong arg5 = 0, arg6 = 0;
> >>
> >> nb_args = mips_syscall_args[syscall_num];
> >> sp_reg = env->active_tc.gpr[29];
> >> switch (nb_args) {
> >> /* these arguments are taken from the stack */
> >> /* FIXME - what to do if get_user() fails? */
> >> - case 8: get_user_ual(arg8, sp_reg + 28);
> >> - case 7: get_user_ual(arg7, sp_reg + 24);
> >> + case 8: /* get_user_ual(arg8, sp_reg + 28); */
> >> + case 7: /* get_user_ual(arg7, sp_reg + 24); */
> >
> > I'd prefer to see these and the respective variable definitions #if
> > 0'd with a comment, stating that they're currently unused.
>
> I'd prefer not to see if 0 code. Better, I think, to mark the
> variables as __attribute__((unused)) with that same comment.
Why keep dead code around? If it's for documentation pruposes
comment or if 0 seems more appropriate than attributes.
> >> @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> >> case TARGET_NR_osf_sigprocmask:
> >> {
> >> abi_ulong mask;
> >> - int how = arg1;
> >> sigset_t set, oldset;
> >>
> >> switch(arg1) {
> >> case TARGET_SIG_BLOCK:
> >> - how = SIG_BLOCK;
> >> break;
> >> case TARGET_SIG_UNBLOCK:
> >> - how = SIG_UNBLOCK;
> >> break;
> >> case TARGET_SIG_SETMASK:
> >> - how = SIG_SETMASK;
> >
> > why go through the effort of setting "how" and then not using it? I'm
> > pretty sure this is a bug as well. A few lines down is the following
> > code:
> >
> > sigprocmask(arg1, &set, &oldset);
> >
> > which in TARGET_NR_sigprocmask would be:
> >
> > ret = get_errno(sigprocmask(how, &set, &oldset));
> >
> > So we end up sending guest masks to the host. Richard, this is Alpha
> > specific code. Mind to double-check?
>
> I remember fixing this before. Perhaps it was in a patch tree that
> never got pulled...
>
>
> r~
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 08/10] alpha: remove unused variable
2011-06-14 17:47 ` Richard Henderson
@ 2011-06-23 11:47 ` Peter Maydell
2011-06-23 15:25 ` Richard Henderson
0 siblings, 1 reply; 34+ messages in thread
From: Peter Maydell @ 2011-06-23 11:47 UTC (permalink / raw)
To: Richard Henderson; +Cc: Stefan Hajnoczi, qemu-devel
On 14 June 2011 18:47, Richard Henderson <rth@twiddle.net> wrote:
> On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote:
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>> ---
>> target-alpha/translate.c | 7 ++++++-
>> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> Acked-by: Richard Henderson <rth@twiddle.net>
Richard, does this ack mean you've taken this patch (and the
other target-alpha gcc 4.6 warning fix patch) into an alpha
patches queue, or would you prefer these to be routed via the
trivial-patches queue?
thanks
-- PMM
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 08/10] alpha: remove unused variable
2011-06-23 11:47 ` Peter Maydell
@ 2011-06-23 15:25 ` Richard Henderson
0 siblings, 0 replies; 34+ messages in thread
From: Richard Henderson @ 2011-06-23 15:25 UTC (permalink / raw)
To: Peter Maydell; +Cc: Stefan Hajnoczi, qemu-devel
On 06/23/2011 04:47 AM, Peter Maydell wrote:
> On 14 June 2011 18:47, Richard Henderson <rth@twiddle.net> wrote:
>> On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote:
>>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>>> ---
>>> target-alpha/translate.c | 7 ++++++-
>>> 1 files changed, 6 insertions(+), 1 deletions(-)
>>
>> Acked-by: Richard Henderson <rth@twiddle.net>
>
> Richard, does this ack mean you've taken this patch (and the
> other target-alpha gcc 4.6 warning fix patch) into an alpha
> patches queue, or would you prefer these to be routed via the
> trivial-patches queue?
I did not bring it into my patch queue. Please route it through trivial.
r~
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 09/10] exec: remove unused variable
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
@ 2011-06-26 11:08 ` Michael S. Tsirkin
2011-06-26 14:32 ` Stefan Hajnoczi
0 siblings, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-26 11:08 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Gerd Hoffmann,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
Alexander Graf, Christoph Hellwig, Blue Swirl, Alex Williamson,
Paul Brook, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Richard Henderson
On Tue, Jun 14, 2011 at 08:36:26PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Any comments on this one?
> ---
> exec.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index 81808f4..b784f08 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -1207,12 +1207,16 @@ static inline void tb_alloc_page(TranslationBlock *tb,
> unsigned int n, tb_page_addr_t page_addr)
> {
> PageDesc *p;
> +#if !defined(CONFIG_USER_ONLY)
> TranslationBlock *last_first_tb;
> +#endif
>
> tb->page_addr[n] = page_addr;
> p = page_find_alloc(page_addr >> TARGET_PAGE_BITS, 1);
> tb->page_next[n] = p->first_tb;
> +#if !defined(CONFIG_USER_ONLY)
> last_first_tb = p->first_tb;
> +#endif
> p->first_tb = (TranslationBlock *)((long)tb | n);
> invalidate_page_bitmap(p);
>
> --
> 1.7.5.53.gc233e
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
2011-06-15 8:35 ` Alexander Graf
@ 2011-06-26 11:11 ` Michael S. Tsirkin
2011-06-27 9:06 ` Peter Maydell
1 sibling, 1 reply; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-26 11:11 UTC (permalink / raw)
To: qemu-devel
Cc: Kevin Wolf, Anthony Liguori, Marcelo Tosatti, Gerd Hoffmann,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
Alexander Graf, Christoph Hellwig, Blue Swirl, Alex Williamson,
Paul Brook, Paolo Bonzini, Avi Kivity, Aurelien Jarno,
Richard Henderson
On Tue, Jun 14, 2011 at 08:36:33PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Riku, could you fix this up in a way that makes sense please?
All I really care about is that -Werror build passes with the latest
gcc.
--
MST
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 09/10] exec: remove unused variable
2011-06-26 11:08 ` Michael S. Tsirkin
@ 2011-06-26 14:32 ` Stefan Hajnoczi
0 siblings, 0 replies; 34+ messages in thread
From: Stefan Hajnoczi @ 2011-06-26 14:32 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
Stefan Hajnoczi, kvm, Isaku Yamahata, Jan Kiszka, Riku Voipio,
qemu-devel, Christoph Hellwig, Blue Swirl, Alex Williamson,
Gerd Hoffmann, Paolo Bonzini, Richard Henderson, Avi Kivity,
Aurelien Jarno, Paul Brook
On Sun, Jun 26, 2011 at 12:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Tue, Jun 14, 2011 at 08:36:26PM +0300, Michael S. Tsirkin wrote:
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>
> Any comments on this one?
Juan Quintela's "exec: last_first_tb was only used in !ONLY_USER case"
patch is equivalent and the trivial-patches pull request containing it
is on qemu-devel. We're waiting for it to be merged.
http://patchwork.ozlabs.org/patch/101875/
Stefan
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-26 11:11 ` Michael S. Tsirkin
@ 2011-06-27 9:06 ` Peter Maydell
2011-06-27 9:13 ` Peter Maydell
0 siblings, 1 reply; 34+ messages in thread
From: Peter Maydell @ 2011-06-27 9:06 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: Riku Voipio, QEMU Developers
On 26 June 2011 12:11, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Tue, Jun 14, 2011 at 08:36:33PM +0300, Michael S. Tsirkin wrote:
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>
> Riku, could you fix this up in a way that makes sense please?
> All I really care about is that -Werror build passes with the latest
> gcc.
These warnings are all fixed in master + latest linux-user pullreq
+ latest trivial-patches pullreq, with the exception of one new one
introduced by the pselect6 patch in the linaro pullreq.
-- PMM
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables
2011-06-27 9:06 ` Peter Maydell
@ 2011-06-27 9:13 ` Peter Maydell
0 siblings, 0 replies; 34+ messages in thread
From: Peter Maydell @ 2011-06-27 9:13 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: Riku Voipio, QEMU Developers
On 27 June 2011 10:06, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 26 June 2011 12:11, Michael S. Tsirkin <mst@redhat.com> wrote:
>> On Tue, Jun 14, 2011 at 08:36:33PM +0300, Michael S. Tsirkin wrote:
>>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>>
>> Riku, could you fix this up in a way that makes sense please?
>> All I really care about is that -Werror build passes with the latest
>> gcc.
>
> These warnings are all fixed in master + latest linux-user pullreq
> + latest trivial-patches pullreq, with the exception of one new one
> introduced by the pselect6 patch in the linaro pullreq.
oops, s/linaro/linux-user/
-- PMM
^ permalink raw reply [flat|nested] 34+ messages in thread
end of thread, other threads:[~2011-06-27 9:13 UTC | newest]
Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
2011-06-14 22:42 ` Isaku Yamahata
2011-06-14 17:35 ` [Qemu-devel] [PATCH 02/10] usb-ehci: " Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
2011-06-15 6:45 ` Gerd Hoffmann
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
2011-06-15 9:23 ` Stefan Hajnoczi
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
2011-06-14 22:47 ` Isaku Yamahata
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
2011-06-15 7:38 ` Kevin Wolf
2011-06-15 8:25 ` Michael S. Tsirkin
2011-06-15 8:42 ` Jan Kiszka
2011-06-15 12:44 ` Chris Krumme
2011-06-15 18:29 ` Michael S. Tsirkin
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-23 11:47 ` Peter Maydell
2011-06-23 15:25 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
2011-06-26 11:08 ` Michael S. Tsirkin
2011-06-26 14:32 ` Stefan Hajnoczi
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
2011-06-15 8:35 ` Alexander Graf
2011-06-15 8:55 ` Michael S. Tsirkin
2011-06-15 14:32 ` Richard Henderson
2011-06-15 18:40 ` Michael S. Tsirkin
2011-06-15 16:51 ` Peter Maydell
2011-06-26 11:11 ` Michael S. Tsirkin
2011-06-27 9:06 ` Peter Maydell
2011-06-27 9:13 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).