* Thread Sanitizer fixes (Alex)
* Coverity fixes (David) * test-qht fixes (Emilio) * QOM interface for info irq/info pic (Hervé) * -rtc clock=rt fix (Junlian) * mux chardev fixes (Marc-André) * nicer report on death by signal (Michal) * qemu-tech TLC (Paolo) * MSI support for edu device (Peter) * qemu-nbd --offset fix (Tomáš) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQExBAABCAAbBQJX98xmFBxwYm9uemluaUByZWRoYXQuY29tAAoJEL/70l94x66D IXsH/idLNlBzbrGhcuZOXEAd4fCyCyhXGMuOAGJXLHgv+EfiqrJ9z4HTn44czdh7 rJuQDYeDrfl36zc0n8weY7JSEsorCq+JBDomFUFodmCrFUIue2jXYOK6pt5LUrQM OTyruQMKHD316SnJFOK8Tkxi5DrAHNRs+ynDcm+IoB65KE9YgBcBWuEJ03mF9cHi 5sb/SBEqfL49gVlnFXBDTRgXXwA5axS7xKd4+7CWtbVFvJxurImjywGqKI5G/dmC TJyP+Dty4iNjFP1E0VvfL6ETovncZlfe4Hx1b971pll/ec88jGL0brqQMPjACrWh TyLXLN9oTbEKuDxx1Nh23xRFh+c= =sgtZ -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging * Thread Sanitizer fixes (Alex) * Coverity fixes (David) * test-qht fixes (Emilio) * QOM interface for info irq/info pic (Hervé) * -rtc clock=rt fix (Junlian) * mux chardev fixes (Marc-André) * nicer report on death by signal (Michal) * qemu-tech TLC (Paolo) * MSI support for edu device (Peter) * qemu-nbd --offset fix (Tomáš) # gpg: Signature made Fri 07 Oct 2016 17:25:10 BST # gpg: using RSA key 0xBFFBD25F78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini/tags/for-upstream: (39 commits) qemu-doc: merge qemu-tech and qemu-doc qemu-tech: rewrite some parts qemu-tech: reorganize content qemu-tech: move TCG test documentation to tests/tcg/README qemu-tech: move user mode emulation features from qemu-tech qemu-tech: document lazy condition code evaluation in cpu.h qemu-tech: move text from qemu-tech to tcg/README qemu-doc: drop installation and compilation notes qemu-doc: replace introduction with the one from the internals manual qemu-tech: drop index test-qht: perform lookups under rcu_read_lock qht: fix unlock-after-free segfault upon resizing qht: simplify qht_reset_size qemu-nbd: Shrink image size by specified offset qemu_kill_report: Report PID name too util: Introduce qemu_get_pid_name char: update read handler in all cases char: use a fixed idx for child muxed chr i8259: give ISA device when registering ISA ioports .travis.yml: add gcc sanitizer build ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
86e121ae75
51 changed files with 810 additions and 988 deletions
|
|
@ -181,8 +181,6 @@ qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq);
|
|||
qemu_irq *kvm_i8259_init(ISABus *bus);
|
||||
int pic_read_irq(DeviceState *d);
|
||||
int pic_get_output(DeviceState *d);
|
||||
void hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||
void hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||
|
||||
/* ioapic.c */
|
||||
|
||||
|
|
|
|||
33
include/hw/intc/intc.h
Normal file
33
include/hw/intc/intc.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef INTC_H
|
||||
#define INTC_H
|
||||
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_INTERRUPT_STATS_PROVIDER "intctrl"
|
||||
|
||||
#define INTERRUPT_STATS_PROVIDER_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(InterruptStatsProviderClass, (klass), \
|
||||
TYPE_INTERRUPT_STATS_PROVIDER)
|
||||
#define INTERRUPT_STATS_PROVIDER_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(InterruptStatsProviderClass, (obj), \
|
||||
TYPE_INTERRUPT_STATS_PROVIDER)
|
||||
#define INTERRUPT_STATS_PROVIDER(obj) \
|
||||
INTERFACE_CHECK(InterruptStatsProvider, (obj), \
|
||||
TYPE_INTERRUPT_STATS_PROVIDER)
|
||||
|
||||
typedef struct InterruptStatsProvider {
|
||||
Object parent;
|
||||
} InterruptStatsProvider;
|
||||
|
||||
typedef struct InterruptStatsProviderClass {
|
||||
InterfaceClass parent;
|
||||
|
||||
/* The returned pointer and statistics must remain valid until
|
||||
* the BQL is next dropped.
|
||||
*/
|
||||
bool (*get_statistics)(InterruptStatsProvider *obj, uint64_t **irq_counts,
|
||||
unsigned int *nb_irqs);
|
||||
void (*print_info)(InterruptStatsProvider *obj, Monitor *mon);
|
||||
} InterruptStatsProviderClass;
|
||||
|
||||
#endif
|
||||
|
|
@ -8,7 +8,4 @@ uint32_t lm32_pic_get_im(DeviceState *d);
|
|||
void lm32_pic_set_ip(DeviceState *d, uint32_t ip);
|
||||
void lm32_pic_set_im(DeviceState *d, uint32_t im);
|
||||
|
||||
void lm32_hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||
void lm32_hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||
|
||||
#endif /* QEMU_HW_LM32_PIC_H */
|
||||
|
|
|
|||
|
|
@ -24,14 +24,6 @@ static inline void sparc_iommu_memory_write(void *opaque,
|
|||
sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
|
||||
}
|
||||
|
||||
/* slavio_intctl.c */
|
||||
void slavio_pic_info(Monitor *mon, DeviceState *dev);
|
||||
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
||||
|
||||
/* sun4m.c */
|
||||
void sun4m_hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||
void sun4m_hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||
|
||||
/* sparc32_dma.c */
|
||||
#include "hw/sparc/sparc32_dma.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
#if defined(__SANITIZE_THREAD__)
|
||||
#define smp_read_barrier_depends() ({ barrier(); __atomic_thread_fence(__ATOMIC_CONSUME); })
|
||||
#elsif defined(__alpha__)
|
||||
#elif defined(__alpha__)
|
||||
#define smp_read_barrier_depends() asm volatile("mb":::"memory")
|
||||
#else
|
||||
#define smp_read_barrier_depends() barrier()
|
||||
|
|
@ -92,6 +92,12 @@
|
|||
/* Weak atomic operations prevent the compiler moving other
|
||||
* loads/stores past the atomic operation load/store. However there is
|
||||
* no explicit memory barrier for the processor.
|
||||
*
|
||||
* The C11 memory model says that variables that are accessed from
|
||||
* different threads should at least be done with __ATOMIC_RELAXED
|
||||
* primitives or the result is undefined. Generally this has little to
|
||||
* no effect on the generated code but not using the atomic primitives
|
||||
* will get flagged by sanitizers as a violation.
|
||||
*/
|
||||
#define atomic_read(ptr) \
|
||||
({ \
|
||||
|
|
|
|||
|
|
@ -387,6 +387,16 @@ void os_mem_prealloc(int fd, char *area, size_t sz, Error **errp);
|
|||
|
||||
int qemu_read_password(char *buf, int buf_size);
|
||||
|
||||
/**
|
||||
* qemu_get_pid_name:
|
||||
* @pid: pid of a process
|
||||
*
|
||||
* For given @pid fetch its name. Caller is responsible for
|
||||
* freeing the string when no longer needed.
|
||||
* Returns allocated string on success, NULL on failure.
|
||||
*/
|
||||
char *qemu_get_pid_name(pid_t pid);
|
||||
|
||||
/**
|
||||
* qemu_fork:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ static inline void seqlock_init(QemuSeqLock *sl)
|
|||
/* Lock out other writers and update the count. */
|
||||
static inline void seqlock_write_begin(QemuSeqLock *sl)
|
||||
{
|
||||
++sl->sequence;
|
||||
atomic_set(&sl->sequence, sl->sequence + 1);
|
||||
|
||||
/* Write sequence before updating other fields. */
|
||||
smp_wmb();
|
||||
|
|
@ -42,7 +42,7 @@ static inline void seqlock_write_end(QemuSeqLock *sl)
|
|||
/* Write other fields before finalizing sequence. */
|
||||
smp_wmb();
|
||||
|
||||
++sl->sequence;
|
||||
atomic_set(&sl->sequence, sl->sequence + 1);
|
||||
}
|
||||
|
||||
static inline unsigned seqlock_read_begin(QemuSeqLock *sl)
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ struct CharDriverState {
|
|||
int explicit_be_open;
|
||||
int avail_connections;
|
||||
int is_mux;
|
||||
int mux_idx;
|
||||
guint fd_in_tag;
|
||||
QemuOpts *opts;
|
||||
bool replay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue