1. 24 9月, 2013 12 次提交
    • L
    • L
      bd00c74c
    • L
      linux-user: Add setsockopt(SO_ATTACH_FILTER) · f57d4192
      Laurent Vivier 提交于
      This is needed to be able to run dhclient.
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      f57d4192
    • L
      linux-user: convert /proc/net/route when endianess differs · de6b9933
      Laurent Vivier 提交于
      This patch allows to have IP addresses in correct order
      in the case of "netstat -nr" when the endianess of the
      guest differs from one of the host.
      
      For instance, an m68k guest on an x86_64 host:
      
      WITHOUT this patch:
      
      $ netstat -nr
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
      0.0.0.0         1.3.0.10        0.0.0.0         UG        0 0          0 eth0
      0.3.0.10        0.0.0.0         0.255.255.255   U         0 0          0 eth0
      $ cat /proc/net/route
      Iface	Destination	Gateway 	Flags	RefCnt	Use	Metric	Mask	MTU	Window	IRTT
      
      eth0	00000000	0103000A	0003	0	0	0	000000000	0	0
      eth0	0003000A	00000000	0001	0	0	0	00FFFFFF0	0	0
      
      WITH this patch:
      
      $ netstat -nr
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
      0.0.0.0         10.0.3.1        0.0.0.0         UG        0 0          0 eth0
      10.0.3.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
      $ cat /proc/net/route
      Iface	Destination	Gateway 	Flags	RefCnt	Use	Metric	Mask	MTU	Window	IRTT
      eth0	00000000	0a000301	0003	0	0	0	000000000	0	0
      eth0	0a000300	00000000	0001	0	0	0	ffffff000	0	0
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      de6b9933
    • R
      mips-linux-user: Adjust names in mips_syscall_args · 868e34d7
      Richard Henderson 提交于
      The name field of MIPS_SYS isn't actually used; it's just documentation.
      But adjust the umount entries to match mips/syscall_nr.h anyway.
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      868e34d7
    • R
      alpha-linux-user: Fix umount syscall numbers · 8070e7be
      Richard Henderson 提交于
      It has been pointed out on LKML that the alpha umount syscall numbers
      are named wrong, and a patch to rectify that has been posted for 3.11.
      
      Glibc works around this by treating NR_umount as NR_umount2 if
      NR_oldumount exists.  That's more complicated than we need in QEMU,
      given that we control linux-user/*/syscall_nr.h.
      
      This is the last instance of TARGET_NR_oldumount, so delete that from
      the strace.list.
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      8070e7be
    • A
      Merge remote-tracking branch 'stefanha/tracing' into staging · f828a4c8
      Anthony Liguori 提交于
      # By Alexey Kardashevskiy
      # Via Stefan Hajnoczi
      * stefanha/tracing:
        kvm: fix traces to use %x instead of %d
      
      Message-id: 1379699931-5837-1-git-send-email-stefanha@redhat.com
      f828a4c8
    • A
      Merge remote-tracking branch 'stefanha/net' into staging · feb678c6
      Anthony Liguori 提交于
      # By Aurelien Jarno (1) and Vincenzo Maffione (1)
      # Via Stefan Hajnoczi
      * stefanha/net:
        e1000: NetClientInfo.receive_iov implemented
        pcnet-pci: mark I/O and MMIO as LITTLE_ENDIAN
      
      Message-id: 1379699613-5338-1-git-send-email-stefanha@redhat.com
      feb678c6
    • A
      Merge remote-tracking branch 'stefanha/block' into staging · 16121fa3
      Anthony Liguori 提交于
      # By Stefan Hajnoczi (4) and others
      # Via Stefan Hajnoczi
      * stefanha/block:
        virtio-blk: do not relay a previous driver's WCE configuration to the current
        blockdev: do not default cache.no-flush to true
        block: don't lose data from last incomplete sector
        qcow2: Correct snapshots size for overlap check
        coroutine: fix /perf/nesting coroutine benchmark
        coroutine: add qemu_coroutine_yield benchmark
        qemu-timer: do not take the lock in timer_pending
        qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe
        qemu-timer: drop outdated signal safety comments
        osdep: warn if open(O_DIRECT) on fails with EINVAL
        libcacard: link against qemu-error.o for error_report()
      
      Message-id: 1379698931-946-1-git-send-email-stefanha@redhat.com
      16121fa3
    • A
      Merge remote-tracking branch 'mjt/trivial-patches' into staging · 2e6ae666
      Anthony Liguori 提交于
      # By Stefan Weil (8) and others
      # Via Michael Tokarev
      * mjt/trivial-patches:
        tests/.gitignore: ignore test-throttle
        exec: Fix broken build for MinGW (regression)
        kvm: Fix compiler warning (clang)
        tcg-sparc: Fix parenthesis warning
        Makefile: Remove some more files when cleaning
        target-i386: Fix segment cache dump
        iov: avoid "orig_len may be used unitialized" warning
        vscclient: remove unnecessary use of uninitialized variable
        trace-events: Clean up with scripts/cleanup-trace-events.pl again
        tci: Fix qemu-alpha on 32 bit hosts (wrong assertions)
        *-user: Improve documentation for lock_user function
        MAINTAINERS: Add missing entry to filelist for TCI target
        translate-all: Fix formatting of dump output
        *-user: Fix typo in comment (ulocking -> unlocking)
        docs: Fix IO port number for CPU present bitmap.
        q35: Fix typo in constant DEFUALT -> DEFAULT.
        configure: Undefine _FORTIFY_SOURCE prior using it
      
      Message-id: 1379696296-32105-1-git-send-email-mjt@msgid.tls.msk.ru
      2e6ae666
    • A
      Merge remote-tracking branch 'qemu-kvm/uq/master' into staging · 3e4be9c2
      Anthony Liguori 提交于
      # By Alexey Kardashevskiy (3) and others
      # Via Paolo Bonzini
      * qemu-kvm/uq/master:
        target-i386: add feature kvm_pv_unhalt
        linux-headers: update to 3.12-rc1
        target-i386: forward CPUID cache leaves when -cpu host is used
        linux-headers: update to 3.11
        kvm: fix traces to use %x instead of %d
        kvmvapic: Clear also physical ROM address when entering INACTIVE state
        kvmvapic: Enter inactive state on hardware reset
        kvmvapic: Catch invalid ROM size
        kvm irqfd: support direct msimessage to irq translation
        fix steal time MSR vmsd callback to proper opaque type
        kvm: warn if num cpus is greater than num recommended
        cpu: Move cpu state syncs up into cpu_dump_state()
        exec: always use MADV_DONTFORK
      
      Message-id: 1379694292-1601-1-git-send-email-pbonzini@redhat.com
      3e4be9c2
    • A
      Merge remote-tracking branch 'bonzini/scsi-next' into staging · f3ca508f
      Anthony Liguori 提交于
      # By Hervé Poussineau (5) and Stefan Weil (1)
      # Via Paolo Bonzini
      * bonzini/scsi-next:
        block/iscsi: Drop iscsi_co_get_block_status for older versions of libiscsi
        lsi: add 53C810 variant
        lsi: remove todo
        lsi: ignore write accesses to CTEST0 registers
        lsi: check ssid versus sdid only if ssid is valid
        lsi: use constant name instead of its value
      f3ca508f
  2. 21 9月, 2013 23 次提交
  3. 20 9月, 2013 5 次提交
    • A
      Merge remote-tracking branch 'spice/spice.v74' into staging · 2571f8f5
      Anthony Liguori 提交于
      # By Gerd Hoffmann
      # Via Gerd Hoffmann
      * spice/spice.v74:
        qxl: compile only once
        qxl: simplify page dirtying
        qxl: simplify qxl_rom_size
        qxl: define qxl operating on 4k pages
      
      Message-id: 1379583534-7831-1-git-send-email-kraxel@redhat.com
      2571f8f5
    • A
      Merge remote-tracking branch 'kraxel/usb.90' into staging · ce63e9c2
      Anthony Liguori 提交于
      # By Hans de Goede (6) and Gerd Hoffmann (1)
      # Via Gerd Hoffmann
      * kraxel/usb.90:
        usb: Fix iovec memleak on combined-packet free
        usb: Also reset max_packet_size on ep_reset
        xhci: Fix memory leak on xhci_disable_ep
        xhci: Add xhci_epid_to_usbep helper function
        xhci: Init a transfers xhci, slotid and epid member on epctx alloc
        xhci: Fix number of streams allocated when using streams
        usb: remove old usb-host code
      
      Message-id: 1379583298-7524-1-git-send-email-kraxel@redhat.com
      ce63e9c2
    • A
      Merge remote-tracking branch 'luiz/queue/qmp' into staging · f54c49e2
      Anthony Liguori 提交于
      # By Luiz Capitulino
      # Via Luiz Capitulino
      * luiz/queue/qmp:
        QMP: qmp-events.txt: alphabetical order fix and other minor changes
        QMP: Update qmp-spec.txt
        QMP: Update README file
        QMP: QMP/ -> docs/qmp/
        QMP: fix qmp-commands.txt generation path
        QMP: add scripts/qmp
      
      Message-id: 1379509422-29115-1-git-send-email-lcapitulino@redhat.com
      f54c49e2
    • M
      qcow2: Correct snapshots size for overlap check · 0f39ac9a
      Max Reitz 提交于
      Using s->snapshots_size instead of snapshots_size for the metadata
      overlap check in qcow2_write_snapshots leads to the detection of an
      overlap with the main qcow2 image header when deleting the last
      snapshot, since s->snapshots_size has not yet been updated and is
      therefore non-zero. However, the offset returned by qcow2_alloc_clusters
      will be zero since snapshots_size is zero. Therefore, an overlap is
      detected albeit no such will occur.
      
      This patch fixes this by replacing s->snapshots_size by snapshots_size
      when calling qcow2_pre_write_overlap_check.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      0f39ac9a
    • A
      target-i386: add feature kvm_pv_unhalt · f010bc64
      Andrew Jones 提交于
      I don't know yet if want this feature on by default, so for now I'm
      just adding support for "-cpu ...,+kvm_pv_unhalt".
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f010bc64