Pull request
-----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmNXleQSHGxhdXJlbnRA dml2aWVyLmV1AAoJEPMMOL0/L748TIsP/1gulTFpYAs3Kao6IZonsuCzrjQrJWqv 5SD7cVb7isOWdOSNK3glE4dG54Q38PaS9GHaCvzIndjHxlWddCCUuwiw6p1Wdo70 fjNfcCOEPoalQbkZvLejhs5n2rlfTvS5JUnLKVD9+ton7hjnTyKGDDYao5mYhtzv Kn9NpCD3m+K3orzG2Jj7jR1UAumg4cW4YQEpT8ItDT4Y5UAxjL6TZQ6CE220DQDq YwDrHEgDYr/UKlTbIC/JwlKOLr0sh+UB1VV8GZS6e6pU9u5WpDDHlQZpU8W2tLLg cG5m8tLG2avFxRMUFrPNZ8Lx2xKO8wL1PtgAO9w7qFK+r0soZvv+Zh4ev/t5zGLf ciliItqf97yPYNIc3su75jqdQHed7lmZc3m9LBHg8VXN6rAatt8vWUbG90sAZuTU tWBZHvQmG0s2MK4UYqeQ59tc21v9T2+VCiiv/1vjgEUr8tBhXS562jrDt/bNEqKa eRzT4h4ffbP6BJRnyakxkFkQ7nd2OdlLNKUAr9Tk6T2fYuarfEdbYx//0950agqD AAtdQ/AJm6Pq1Px0/RuMKK5WsL818BoAkfr6n7qXleunytJ1W5hjW9EmFIPZWPTR ce/lSFHA0+MCpg6C8zAa4iNBg/Pk0p3GRrTeWyHK1FjV+Gep1QtE/a1vk/qiPzTM qZVfPxa8cXXe =caiq -----END PGP SIGNATURE----- Merge tag 'trivial-branch-for-7.2-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging Pull request # -----BEGIN PGP SIGNATURE----- # # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmNXleQSHGxhdXJlbnRA # dml2aWVyLmV1AAoJEPMMOL0/L748TIsP/1gulTFpYAs3Kao6IZonsuCzrjQrJWqv # 5SD7cVb7isOWdOSNK3glE4dG54Q38PaS9GHaCvzIndjHxlWddCCUuwiw6p1Wdo70 # fjNfcCOEPoalQbkZvLejhs5n2rlfTvS5JUnLKVD9+ton7hjnTyKGDDYao5mYhtzv # Kn9NpCD3m+K3orzG2Jj7jR1UAumg4cW4YQEpT8ItDT4Y5UAxjL6TZQ6CE220DQDq # YwDrHEgDYr/UKlTbIC/JwlKOLr0sh+UB1VV8GZS6e6pU9u5WpDDHlQZpU8W2tLLg # cG5m8tLG2avFxRMUFrPNZ8Lx2xKO8wL1PtgAO9w7qFK+r0soZvv+Zh4ev/t5zGLf # ciliItqf97yPYNIc3su75jqdQHed7lmZc3m9LBHg8VXN6rAatt8vWUbG90sAZuTU # tWBZHvQmG0s2MK4UYqeQ59tc21v9T2+VCiiv/1vjgEUr8tBhXS562jrDt/bNEqKa # eRzT4h4ffbP6BJRnyakxkFkQ7nd2OdlLNKUAr9Tk6T2fYuarfEdbYx//0950agqD # AAtdQ/AJm6Pq1Px0/RuMKK5WsL818BoAkfr6n7qXleunytJ1W5hjW9EmFIPZWPTR # ce/lSFHA0+MCpg6C8zAa4iNBg/Pk0p3GRrTeWyHK1FjV+Gep1QtE/a1vk/qiPzTM # qZVfPxa8cXXe # =caiq # -----END PGP SIGNATURE----- # gpg: Signature made Tue 25 Oct 2022 03:53:08 EDT # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * tag 'trivial-branch-for-7.2-pull-request' of https://gitlab.com/laurent_vivier/qemu: accel/tcg/tcg-accel-ops-rr: fix trivial typo ui: remove useless typecasts treewide: Remove the unnecessary space before semicolon include/hw/scsi/scsi.h: Remove unused scsi_legacy_handle_cmdline() prototype vmstate-static-checker:remove this redundant return tests/qtest: vhost-user-test: Fix [-Werror=format-overflow=] build warning tests/qtest: migration-test: Fix [-Werror=format-overflow=] build warning Drop useless casts from g_malloc() & friends to pointer elf2dmp: free memory in failure hw/core: Tidy up unnecessary casting away of const .gitignore: add multiple items to .gitignore Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
79fc2fb685
|
@ -1,10 +1,13 @@
|
||||||
/GNUmakefile
|
/GNUmakefile
|
||||||
/build/
|
/build/
|
||||||
/.cache/
|
/.cache/
|
||||||
|
/.vscode/
|
||||||
*.pyc
|
*.pyc
|
||||||
.sdk
|
.sdk
|
||||||
.stgit-*
|
.stgit-*
|
||||||
.git-submodule-status
|
.git-submodule-status
|
||||||
|
.clang-format
|
||||||
|
.gdb_history
|
||||||
cscope.*
|
cscope.*
|
||||||
tags
|
tags
|
||||||
TAGS
|
TAGS
|
||||||
|
|
|
@ -51,7 +51,7 @@ void rr_kick_vcpu_thread(CPUState *unused)
|
||||||
*
|
*
|
||||||
* The kick timer is responsible for moving single threaded vCPU
|
* The kick timer is responsible for moving single threaded vCPU
|
||||||
* emulation on to the next vCPU. If more than one vCPU is running a
|
* emulation on to the next vCPU. If more than one vCPU is running a
|
||||||
* timer event with force a cpu->exit so the next vCPU can get
|
* timer event we force a cpu->exit so the next vCPU can get
|
||||||
* scheduled.
|
* scheduled.
|
||||||
*
|
*
|
||||||
* The timer is removed if all vCPUs are idle and restarted again once
|
* The timer is removed if all vCPUs are idle and restarted again once
|
||||||
|
|
|
@ -125,6 +125,7 @@ static KDDEBUGGER_DATA64 *get_kdbg(uint64_t KernBase, struct pdb_reader *pdb,
|
||||||
|
|
||||||
if (va_space_rw(vs, KdDebuggerDataBlock, kdbg, kdbg_hdr.Size, 0)) {
|
if (va_space_rw(vs, KdDebuggerDataBlock, kdbg, kdbg_hdr.Size, 0)) {
|
||||||
eprintf("Failed to extract entire KDBG\n");
|
eprintf("Failed to extract entire KDBG\n");
|
||||||
|
free(kdbg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1803,7 +1803,7 @@ static void coroutine_fn v9fs_walk(void *opaque)
|
||||||
err = pdu_unmarshal(pdu, offset, "ddw", &fid, &newfid, &nwnames);
|
err = pdu_unmarshal(pdu, offset, "ddw", &fid, &newfid, &nwnames);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
pdu_complete(pdu, err);
|
pdu_complete(pdu, err);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
offset += err;
|
offset += err;
|
||||||
|
|
||||||
|
|
|
@ -702,7 +702,7 @@ static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len)
|
||||||
|
|
||||||
static void *mipid_init(void)
|
static void *mipid_init(void)
|
||||||
{
|
{
|
||||||
struct mipid_s *s = (struct mipid_s *) g_malloc0(sizeof(*s));
|
struct mipid_s *s = g_malloc0(sizeof(*s));
|
||||||
|
|
||||||
s->id = 0x838f03;
|
s->id = 0x838f03;
|
||||||
mipid_reset(s);
|
mipid_reset(s);
|
||||||
|
@ -1300,7 +1300,7 @@ static int n810_atag_setup(const struct arm_boot_info *info, void *p)
|
||||||
static void n8x0_init(MachineState *machine,
|
static void n8x0_init(MachineState *machine,
|
||||||
struct arm_boot_info *binfo, int model)
|
struct arm_boot_info *binfo, int model)
|
||||||
{
|
{
|
||||||
struct n800_s *s = (struct n800_s *) g_malloc0(sizeof(*s));
|
struct n800_s *s = g_malloc0(sizeof(*s));
|
||||||
MachineClass *mc = MACHINE_GET_CLASS(machine);
|
MachineClass *mc = MACHINE_GET_CLASS(machine);
|
||||||
|
|
||||||
if (machine->ram_size != mc->default_ram_size) {
|
if (machine->ram_size != mc->default_ram_size) {
|
||||||
|
|
|
@ -211,7 +211,7 @@ static void fifo_reset(Exynos4210UartFIFO *q)
|
||||||
g_free(q->data);
|
g_free(q->data);
|
||||||
q->data = NULL;
|
q->data = NULL;
|
||||||
|
|
||||||
q->data = (uint8_t *)g_malloc0(q->size);
|
q->data = g_malloc0(q->size);
|
||||||
|
|
||||||
q->sp = 0;
|
q->sp = 0;
|
||||||
q->rp = 0;
|
q->rp = 0;
|
||||||
|
|
|
@ -299,7 +299,8 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, void *opaque)
|
||||||
void *guest_fdt = data->fdt, *host_fdt;
|
void *guest_fdt = data->fdt, *host_fdt;
|
||||||
const void *r;
|
const void *r;
|
||||||
int i, prop_len;
|
int i, prop_len;
|
||||||
uint32_t *irq_attr, *reg_attr, *host_clock_phandles;
|
uint32_t *irq_attr, *reg_attr;
|
||||||
|
const uint32_t *host_clock_phandles;
|
||||||
uint64_t mmio_base, irq_number;
|
uint64_t mmio_base, irq_number;
|
||||||
uint32_t guest_clock_phandles[2];
|
uint32_t guest_clock_phandles[2];
|
||||||
|
|
||||||
|
@ -339,7 +340,7 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, void *opaque)
|
||||||
error_report("%s clocks property should contain 2 handles", __func__);
|
error_report("%s clocks property should contain 2 handles", __func__);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
host_clock_phandles = (uint32_t *)r;
|
host_clock_phandles = r;
|
||||||
guest_clock_phandles[0] = qemu_fdt_alloc_phandle(guest_fdt);
|
guest_clock_phandles[0] = qemu_fdt_alloc_phandle(guest_fdt);
|
||||||
guest_clock_phandles[1] = qemu_fdt_alloc_phandle(guest_fdt);
|
guest_clock_phandles[1] = qemu_fdt_alloc_phandle(guest_fdt);
|
||||||
|
|
||||||
|
|
|
@ -1007,7 +1007,7 @@ static const GraphicHwOps blizzard_ops = {
|
||||||
|
|
||||||
void *s1d13745_init(qemu_irq gpio_int)
|
void *s1d13745_init(qemu_irq gpio_int)
|
||||||
{
|
{
|
||||||
BlizzardState *s = (BlizzardState *) g_malloc0(sizeof(*s));
|
BlizzardState *s = g_malloc0(sizeof(*s));
|
||||||
DisplaySurface *surface;
|
DisplaySurface *surface;
|
||||||
|
|
||||||
s->fb = g_malloc(0x180000);
|
s->fb = g_malloc(0x180000);
|
||||||
|
|
|
@ -1328,7 +1328,7 @@ static void pl330_debug_exec(PL330State *s)
|
||||||
}
|
}
|
||||||
if (!insn) {
|
if (!insn) {
|
||||||
pl330_fault(ch, PL330_FAULT_UNDEF_INSTR | PL330_FAULT_DBG_INSTR);
|
pl330_fault(ch, PL330_FAULT_UNDEF_INSTR | PL330_FAULT_DBG_INSTR);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
ch->stall = 0;
|
ch->stall = 0;
|
||||||
insn->exec(ch, opcode, args, insn->size - 1);
|
insn->exec(ch, opcode, args, insn->size - 1);
|
||||||
|
|
|
@ -133,7 +133,7 @@ static void cbus_sel(void *opaque, int line, int level)
|
||||||
|
|
||||||
CBus *cbus_init(qemu_irq dat)
|
CBus *cbus_init(qemu_irq dat)
|
||||||
{
|
{
|
||||||
CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s));
|
CBusPriv *s = g_malloc0(sizeof(*s));
|
||||||
|
|
||||||
s->dat_out = dat;
|
s->dat_out = dat;
|
||||||
s->cbus.clk = qemu_allocate_irq(cbus_clk, s, 0);
|
s->cbus.clk = qemu_allocate_irq(cbus_clk, s, 0);
|
||||||
|
@ -388,7 +388,7 @@ static void retu_io(void *opaque, int rw, int reg, uint16_t *val)
|
||||||
|
|
||||||
void *retu_init(qemu_irq irq, int vilma)
|
void *retu_init(qemu_irq irq, int vilma)
|
||||||
{
|
{
|
||||||
CBusRetu *s = (CBusRetu *) g_malloc0(sizeof(*s));
|
CBusRetu *s = g_malloc0(sizeof(*s));
|
||||||
|
|
||||||
s->irq = irq;
|
s->irq = irq;
|
||||||
s->irqen = 0xffff;
|
s->irqen = 0xffff;
|
||||||
|
@ -604,7 +604,7 @@ static void tahvo_io(void *opaque, int rw, int reg, uint16_t *val)
|
||||||
|
|
||||||
void *tahvo_init(qemu_irq irq, int betty)
|
void *tahvo_init(qemu_irq irq, int betty)
|
||||||
{
|
{
|
||||||
CBusTahvo *s = (CBusTahvo *) g_malloc0(sizeof(*s));
|
CBusTahvo *s = g_malloc0(sizeof(*s));
|
||||||
|
|
||||||
s->irq = irq;
|
s->irq = irq;
|
||||||
s->irqen = 0xffff;
|
s->irqen = 0xffff;
|
||||||
|
|
|
@ -431,7 +431,7 @@ void can_sja_mem_write(CanSJA1000State *s, hwaddr addr, uint64_t val,
|
||||||
(unsigned long long)val, (unsigned int)addr);
|
(unsigned long long)val, (unsigned int)addr);
|
||||||
|
|
||||||
if (addr > CAN_SJA_MEM_SIZE) {
|
if (addr > CAN_SJA_MEM_SIZE) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->clock & 0x80) { /* PeliCAN Mode */
|
if (s->clock & 0x80) { /* PeliCAN Mode */
|
||||||
|
|
|
@ -315,7 +315,7 @@ eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords)
|
||||||
addrbits = 6;
|
addrbits = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
eeprom = (eeprom_t *)g_malloc0(sizeof(*eeprom) + nwords * 2);
|
eeprom = g_malloc0(sizeof(*eeprom) + nwords * 2);
|
||||||
eeprom->size = nwords;
|
eeprom->size = nwords;
|
||||||
eeprom->addrbits = addrbits;
|
eeprom->addrbits = addrbits;
|
||||||
/* Output DO is tristate, read results in 1. */
|
/* Output DO is tristate, read results in 1. */
|
||||||
|
|
|
@ -57,7 +57,7 @@ static void update_events(RCMTState *cmt, int ch)
|
||||||
|
|
||||||
if ((cmt->cmstr & (1 << ch)) == 0) {
|
if ((cmt->cmstr & (1 << ch)) == 0) {
|
||||||
/* count disable, so not happened next event. */
|
/* count disable, so not happened next event. */
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
next_time = cmt->cmcor[ch] - cmt->cmcnt[ch];
|
next_time = cmt->cmcor[ch] - cmt->cmcnt[ch];
|
||||||
next_time *= NANOSECONDS_PER_SECOND;
|
next_time *= NANOSECONDS_PER_SECOND;
|
||||||
|
|
|
@ -67,18 +67,18 @@ static void update_events(RTMRState *tmr, int ch)
|
||||||
int i, event;
|
int i, event;
|
||||||
|
|
||||||
if (tmr->tccr[ch] == 0) {
|
if (tmr->tccr[ch] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (FIELD_EX8(tmr->tccr[ch], TCCR, CSS) == 0) {
|
if (FIELD_EX8(tmr->tccr[ch], TCCR, CSS) == 0) {
|
||||||
/* external clock mode */
|
/* external clock mode */
|
||||||
/* event not happened */
|
/* event not happened */
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) == CSS_CASCADING) {
|
if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) == CSS_CASCADING) {
|
||||||
/* cascading mode */
|
/* cascading mode */
|
||||||
if (ch == 1) {
|
if (ch == 1) {
|
||||||
tmr->next[ch] = none;
|
tmr->next[ch] = none;
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
diff[cmia] = concat_reg(tmr->tcora) - concat_reg(tmr->tcnt);
|
diff[cmia] = concat_reg(tmr->tcora) - concat_reg(tmr->tcnt);
|
||||||
diff[cmib] = concat_reg(tmr->tcorb) - concat_reg(tmr->tcnt);
|
diff[cmib] = concat_reg(tmr->tcorb) - concat_reg(tmr->tcnt);
|
||||||
|
@ -384,7 +384,7 @@ static void timer_events(RTMRState *tmr, int ch)
|
||||||
tmr->tcorb[ch]) & 0xff;
|
tmr->tcorb[ch]) & 0xff;
|
||||||
} else {
|
} else {
|
||||||
if (ch == 1) {
|
if (ch == 1) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
tcnt = issue_event(tmr, ch, 16,
|
tcnt = issue_event(tmr, ch, 16,
|
||||||
concat_reg(tmr->tcnt),
|
concat_reg(tmr->tcnt),
|
||||||
|
|
|
@ -140,7 +140,7 @@ static void emulated_apdu_from_guest(CCIDCardState *base,
|
||||||
const uint8_t *apdu, uint32_t len)
|
const uint8_t *apdu, uint32_t len)
|
||||||
{
|
{
|
||||||
EmulatedState *card = EMULATED_CCID_CARD(base);
|
EmulatedState *card = EMULATED_CCID_CARD(base);
|
||||||
EmulEvent *event = (EmulEvent *)g_malloc(sizeof(EmulEvent) + len);
|
EmulEvent *event = g_malloc(sizeof(EmulEvent) + len);
|
||||||
|
|
||||||
assert(event);
|
assert(event);
|
||||||
event->p.data.type = EMUL_GUEST_APDU;
|
event->p.data.type = EMUL_GUEST_APDU;
|
||||||
|
|
|
@ -1675,7 +1675,7 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp)
|
||||||
if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) {
|
if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) {
|
||||||
error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported by"
|
error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported by"
|
||||||
" neither legacy nor transitional device");
|
" neither legacy nor transitional device");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Legacy and transitional devices use specific subsystem IDs.
|
* Legacy and transitional devices use specific subsystem IDs.
|
||||||
|
|
|
@ -117,7 +117,7 @@ static void glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd, int must_swab,
|
||||||
shdr_table = load_at(fd, ehdr->e_shoff,
|
shdr_table = load_at(fd, ehdr->e_shoff,
|
||||||
sizeof(struct elf_shdr) * ehdr->e_shnum);
|
sizeof(struct elf_shdr) * ehdr->e_shnum);
|
||||||
if (!shdr_table) {
|
if (!shdr_table) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (must_swab) {
|
if (must_swab) {
|
||||||
|
|
|
@ -188,7 +188,6 @@ SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,
|
||||||
const char *serial, Error **errp);
|
const char *serial, Error **errp);
|
||||||
void scsi_bus_set_ua(SCSIBus *bus, SCSISense sense);
|
void scsi_bus_set_ua(SCSIBus *bus, SCSISense sense);
|
||||||
void scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
|
void scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
|
||||||
void scsi_legacy_handle_cmdline(void);
|
|
||||||
|
|
||||||
SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d,
|
SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d,
|
||||||
uint32_t tag, uint32_t lun, void *hba_private);
|
uint32_t tag, uint32_t lun, void *hba_private);
|
||||||
|
|
|
@ -367,7 +367,6 @@ def check_machine_type(s, d):
|
||||||
if s["Name"] != d["Name"]:
|
if s["Name"] != d["Name"]:
|
||||||
print("Warning: checking incompatible machine types:", end=' ')
|
print("Warning: checking incompatible machine types:", end=' ')
|
||||||
print("\"" + s["Name"] + "\", \"" + d["Name"] + "\"")
|
print("\"" + s["Name"] + "\", \"" + d["Name"] + "\"")
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -2262,8 +2262,7 @@ static int kvm_get_supported_feature_msrs(KVMState *s)
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(msr_list.nmsrs > 0);
|
assert(msr_list.nmsrs > 0);
|
||||||
kvm_feature_msrs = (struct kvm_msr_list *) \
|
kvm_feature_msrs = g_malloc0(sizeof(msr_list) +
|
||||||
g_malloc0(sizeof(msr_list) +
|
|
||||||
msr_list.nmsrs * sizeof(msr_list.indices[0]));
|
msr_list.nmsrs * sizeof(msr_list.indices[0]));
|
||||||
|
|
||||||
kvm_feature_msrs->nmsrs = msr_list.nmsrs;
|
kvm_feature_msrs->nmsrs = msr_list.nmsrs;
|
||||||
|
|
|
@ -1164,9 +1164,8 @@ static void whpx_translate_cpu_breakpoints(
|
||||||
(breakpoints->breakpoints ? breakpoints->breakpoints->used : 0);
|
(breakpoints->breakpoints ? breakpoints->breakpoints->used : 0);
|
||||||
|
|
||||||
struct whpx_breakpoint_collection *new_breakpoints =
|
struct whpx_breakpoint_collection *new_breakpoints =
|
||||||
(struct whpx_breakpoint_collection *)g_malloc0(
|
g_malloc0(sizeof(struct whpx_breakpoint_collection)
|
||||||
sizeof(struct whpx_breakpoint_collection) +
|
+ max_breakpoints * sizeof(struct whpx_breakpoint));
|
||||||
max_breakpoints * sizeof(struct whpx_breakpoint));
|
|
||||||
|
|
||||||
new_breakpoints->allocated = max_breakpoints;
|
new_breakpoints->allocated = max_breakpoints;
|
||||||
new_breakpoints->used = 0;
|
new_breakpoints->used = 0;
|
||||||
|
|
|
@ -211,7 +211,7 @@ static void vext_set_elems_1s(void *base, uint32_t is_agnostic, uint32_t cnt,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (tot - cnt == 0) {
|
if (tot - cnt == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
memset(base + cnt, -1, tot - cnt);
|
memset(base + cnt, -1, tot - cnt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,7 +286,7 @@ void helper_suntil(CPURXState *env, uint32_t sz)
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
tcg_debug_assert(sz < 3);
|
tcg_debug_assert(sz < 3);
|
||||||
if (env->regs[3] == 0) {
|
if (env->regs[3] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
||||||
|
@ -305,7 +305,7 @@ void helper_swhile(CPURXState *env, uint32_t sz)
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
tcg_debug_assert(sz < 3);
|
tcg_debug_assert(sz < 3);
|
||||||
if (env->regs[3] == 0) {
|
if (env->regs[3] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
||||||
|
|
|
@ -1033,7 +1033,7 @@ int kvm_arch_remove_hw_breakpoint(target_ulong addr,
|
||||||
}
|
}
|
||||||
size = nb_hw_breakpoints * sizeof(struct kvm_hw_breakpoint);
|
size = nb_hw_breakpoints * sizeof(struct kvm_hw_breakpoint);
|
||||||
hw_breakpoints =
|
hw_breakpoints =
|
||||||
(struct kvm_hw_breakpoint *)g_realloc(hw_breakpoints, size);
|
g_realloc(hw_breakpoints, size);
|
||||||
} else {
|
} else {
|
||||||
g_free(hw_breakpoints);
|
g_free(hw_breakpoints);
|
||||||
hw_breakpoints = NULL;
|
hw_breakpoints = NULL;
|
||||||
|
|
|
@ -2481,8 +2481,8 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
tmpfs = g_dir_make_tmp("migration-test-XXXXXX", &err);
|
tmpfs = g_dir_make_tmp("migration-test-XXXXXX", &err);
|
||||||
if (!tmpfs) {
|
if (!tmpfs) {
|
||||||
g_test_message("g_dir_make_tmp on path (%s): %s", tmpfs,
|
g_test_message("Can't create temporary directory in %s: %s",
|
||||||
err->message);
|
g_get_tmp_dir(), err->message);
|
||||||
}
|
}
|
||||||
g_assert(tmpfs);
|
g_assert(tmpfs);
|
||||||
|
|
||||||
|
|
|
@ -571,8 +571,8 @@ static TestServer *test_server_new(const gchar *name,
|
||||||
|
|
||||||
tmpfs = g_dir_make_tmp("vhost-test-XXXXXX", &err);
|
tmpfs = g_dir_make_tmp("vhost-test-XXXXXX", &err);
|
||||||
if (!tmpfs) {
|
if (!tmpfs) {
|
||||||
g_test_message("g_dir_make_tmp on path (%s): %s", tmpfs,
|
g_test_message("Can't create temporary directory in %s: %s",
|
||||||
err->message);
|
g_get_tmp_dir(), err->message);
|
||||||
g_error_free(err);
|
g_error_free(err);
|
||||||
}
|
}
|
||||||
g_assert(tmpfs);
|
g_assert(tmpfs);
|
||||||
|
|
|
@ -1297,7 +1297,7 @@ static void kbd_send_chars(QemuConsole *s)
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
|
||||||
buf = fifo8_pop_buf(&s->out_fifo, MIN(len, avail), &size);
|
buf = fifo8_pop_buf(&s->out_fifo, MIN(len, avail), &size);
|
||||||
qemu_chr_be_write(s->chr, (uint8_t *)buf, size);
|
qemu_chr_be_write(s->chr, buf, size);
|
||||||
len = qemu_chr_be_can_write(s->chr);
|
len = qemu_chr_be_can_write(s->chr);
|
||||||
avail -= size;
|
avail -= size;
|
||||||
}
|
}
|
||||||
|
|
2
ui/gtk.c
2
ui/gtk.c
|
@ -1763,7 +1763,7 @@ static void gd_vc_send_chars(VirtualConsole *vc)
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
|
||||||
buf = fifo8_pop_buf(&vc->vte.out_fifo, MIN(len, avail), &size);
|
buf = fifo8_pop_buf(&vc->vte.out_fifo, MIN(len, avail), &size);
|
||||||
qemu_chr_be_write(vc->vte.chr, (uint8_t *)buf, size);
|
qemu_chr_be_write(vc->vte.chr, buf, size);
|
||||||
len = qemu_chr_be_can_write(vc->vte.chr);
|
len = qemu_chr_be_can_write(vc->vte.chr);
|
||||||
avail -= size;
|
avail -= size;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,8 @@ int vnc_hextile_send_framebuffer_update(VncState *vs, int x,
|
||||||
int has_fg, has_bg;
|
int has_fg, has_bg;
|
||||||
uint8_t *last_fg, *last_bg;
|
uint8_t *last_fg, *last_bg;
|
||||||
|
|
||||||
last_fg = (uint8_t *) g_malloc(VNC_SERVER_FB_BYTES);
|
last_fg = g_malloc(VNC_SERVER_FB_BYTES);
|
||||||
last_bg = (uint8_t *) g_malloc(VNC_SERVER_FB_BYTES);
|
last_bg = g_malloc(VNC_SERVER_FB_BYTES);
|
||||||
has_fg = has_bg = 0;
|
has_fg = has_bg = 0;
|
||||||
for (j = y; j < (y + h); j += 16) {
|
for (j = y; j < (y + h); j += 16) {
|
||||||
for (i = x; i < (x + w); i += 16) {
|
for (i = x; i < (x + w); i += 16) {
|
||||||
|
|
|
@ -373,7 +373,7 @@ void vnc_start_worker_thread(void)
|
||||||
VncJobQueue *q;
|
VncJobQueue *q;
|
||||||
|
|
||||||
if (vnc_worker_thread_running())
|
if (vnc_worker_thread_running())
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
q = vnc_queue_init();
|
q = vnc_queue_init();
|
||||||
qemu_thread_create(&q->thread, "vnc_worker", vnc_worker_thread, q,
|
qemu_thread_create(&q->thread, "vnc_worker", vnc_worker_thread, q,
|
||||||
|
|
2
ui/vnc.c
2
ui/vnc.c
|
@ -3085,7 +3085,7 @@ static void vnc_rect_updated(VncDisplay *vd, int x, int y, struct timeval * tv)
|
||||||
|
|
||||||
rect = vnc_stat_rect(vd, x, y);
|
rect = vnc_stat_rect(vd, x, y);
|
||||||
if (rect->updated) {
|
if (rect->updated) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
rect->times[rect->idx] = *tv;
|
rect->times[rect->idx] = *tv;
|
||||||
rect->idx = (rect->idx + 1) % ARRAY_SIZE(rect->times);
|
rect->idx = (rect->idx + 1) % ARRAY_SIZE(rect->times);
|
||||||
|
|
Loading…
Reference in New Issue