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

* stefanha/trivial-patches:
  qemu-ga: for w32, fix leaked handle ov.hEvent in ga_channel_write()
  ioapic: fix build with DEBUG_IOAPIC
  .gitignore: add qemu-bridge-helper and option rom build products
  cleanup obsolete typedef
  monitor: Remove unused bool field 'qapi' in mon_cmd_t struct
  ds1338: Add missing break statement
  vnc: Fix packed boolean struct members
  Remove type field in ModuleEntry as it's not used
This commit is contained in:
Anthony Liguori 2012-03-19 13:37:41 -05:00
commit b85a4ec8a7
9 changed files with 17 additions and 7 deletions

6
.gitignore vendored
View File

@ -39,6 +39,7 @@ qemu-img-cmds.texi
qemu-img-cmds.h qemu-img-cmds.h
qemu-io qemu-io
qemu-ga qemu-ga
qemu-bridge-helper
qemu-monitor.texi qemu-monitor.texi
QMP/qmp-commands.txt QMP/qmp-commands.txt
test-coroutine test-coroutine
@ -75,9 +76,14 @@ patches
pc-bios/bios-pq/status pc-bios/bios-pq/status
pc-bios/vgabios-pq/status pc-bios/vgabios-pq/status
pc-bios/optionrom/linuxboot.bin pc-bios/optionrom/linuxboot.bin
pc-bios/optionrom/linuxboot.raw
pc-bios/optionrom/linuxboot.img
pc-bios/optionrom/multiboot.bin pc-bios/optionrom/multiboot.bin
pc-bios/optionrom/multiboot.raw pc-bios/optionrom/multiboot.raw
pc-bios/optionrom/multiboot.img
pc-bios/optionrom/kvmvapic.bin pc-bios/optionrom/kvmvapic.bin
pc-bios/optionrom/kvmvapic.raw
pc-bios/optionrom/kvmvapic.img
.stgit-* .stgit-*
cscope.* cscope.*
tags tags

View File

@ -100,6 +100,7 @@ static int ds1338_send(I2CSlave *i2c, uint8_t data)
break; break;
case 5: case 5:
s->now.tm_mon = from_bcd(data & 0x1f) - 1; s->now.tm_mon = from_bcd(data & 0x1f) - 1;
break;
case 6: case 6:
s->now.tm_year = from_bcd(data) + 100; s->now.tm_year = from_bcd(data) + 100;
break; break;

View File

@ -195,7 +195,7 @@ ioapic_mem_write(void *opaque, target_phys_addr_t addr, uint64_t val,
if (size != 4) { if (size != 4) {
break; break;
} }
DPRINTF("write: %08x = %08x\n", s->ioregsel, val); DPRINTF("write: %08x = %08" PRIx64 "\n", s->ioregsel, val);
switch (s->ioregsel) { switch (s->ioregsel) {
case IOAPIC_REG_ID: case IOAPIC_REG_ID:
s->id = (val >> IOAPIC_ID_SHIFT) & IOAPIC_ID_MASK; s->id = (val >> IOAPIC_ID_SHIFT) & IOAPIC_ID_MASK;

View File

@ -19,7 +19,6 @@
typedef struct ModuleEntry typedef struct ModuleEntry
{ {
module_init_type type;
void (*init)(void); void (*init)(void);
QTAILQ_ENTRY(ModuleEntry) node; QTAILQ_ENTRY(ModuleEntry) node;
} ModuleEntry; } ModuleEntry;

View File

@ -128,7 +128,6 @@ typedef struct mon_cmd_t {
int (*cmd_async)(Monitor *mon, const QDict *params, int (*cmd_async)(Monitor *mon, const QDict *params,
MonitorCompletion *cb, void *opaque); MonitorCompletion *cb, void *opaque);
} mhandler; } mhandler;
bool qapi;
int flags; int flags;
} mon_cmd_t; } mon_cmd_t;

View File

@ -236,7 +236,6 @@ typedef struct MACAddr MACAddr;
typedef struct VLANState VLANState; typedef struct VLANState VLANState;
typedef struct VLANClientState VLANClientState; typedef struct VLANClientState VLANClientState;
typedef struct i2c_bus i2c_bus; typedef struct i2c_bus i2c_bus;
typedef struct i2c_slave i2c_slave;
typedef struct ISABus ISABus; typedef struct ISABus ISABus;
typedef struct SMBusDevice SMBusDevice; typedef struct SMBusDevice SMBusDevice;
typedef struct PCIHostState PCIHostState; typedef struct PCIHostState PCIHostState;

View File

@ -259,6 +259,10 @@ static GIOStatus ga_channel_write(GAChannel *c, const char *buf, size_t size,
*count = written; *count = written;
} }
if (ov.hEvent) {
CloseHandle(ov.hEvent);
ov.hEvent = NULL;
}
return status; return status;
} }

View File

@ -31,7 +31,9 @@
void vnc_sasl_client_cleanup(VncState *vs) void vnc_sasl_client_cleanup(VncState *vs)
{ {
if (vs->sasl.conn) { if (vs->sasl.conn) {
vs->sasl.runSSF = vs->sasl.waitWriteSSF = vs->sasl.wantSSF = 0; vs->sasl.runSSF = false;
vs->sasl.wantSSF = false;
vs->sasl.waitWriteSSF = 0;
vs->sasl.encodedLength = vs->sasl.encodedOffset = 0; vs->sasl.encodedLength = vs->sasl.encodedOffset = 0;
vs->sasl.encoded = NULL; vs->sasl.encoded = NULL;
g_free(vs->sasl.username); g_free(vs->sasl.username);

View File

@ -37,9 +37,9 @@ typedef struct VncDisplaySASL VncDisplaySASL;
struct VncStateSASL { struct VncStateSASL {
sasl_conn_t *conn; sasl_conn_t *conn;
/* If we want to negotiate an SSF layer with client */ /* If we want to negotiate an SSF layer with client */
int wantSSF :1; bool wantSSF;
/* If we are now running the SSF layer */ /* If we are now running the SSF layer */
int runSSF :1; bool runSSF;
/* /*
* If this is non-zero, then wait for that many bytes * If this is non-zero, then wait for that many bytes
* to be written plain, before switching to SSF encoding * to be written plain, before switching to SSF encoding