1. 18 12月, 2017 27 次提交
  2. 17 12月, 2017 1 次提交
    • P
      Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into staging · 411ad781
      Peter Maydell 提交于
      Merge tpm 2017/12/15 v1
      
      # gpg: Signature made Fri 15 Dec 2017 04:44:15 GMT
      # gpg:                using RSA key 0x75AD65802A0B4211
      # gpg: Good signature from "Stefan Berger <stefanb@linux.vnet.ibm.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: B818 B9CA DF90 89C2 D5CE  C66B 75AD 6580 2A0B 4211
      
      * remotes/stefanberger/tags/pull-tpm-2017-12-15-1: (32 commits)
        tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size
        tpm: tpm_emulator: get and set buffer size of device
        tpm: tpm_passthrough: Read the buffer size from the host device
        tpm: pull tpm_util_request() out of tpm_util_test()
        tpm: Move getting TPM buffer size to backends
        tpm: remove tpm_register_model()
        tpm-tis: use DEFINE_PROP_TPMBE
        qdev: add DEFINE_PROP_TPMBE
        tpm-tis: check that at most one TPM device exists
        tpm-tis: remove redundant 'tpm_tis:' in error messages
        tpm-emulator: add a FIXME comment about blocking cancel
        acpi: change TPM TIS data conditions
        tpm: add tpm_cmd_get_size() to tpm_util
        tpm: add TPM interface to lookup TPM version
        tpm: lookup the the TPM interface instead of TIS device
        tpm: rename qemu_find_tpm() -> qemu_find_tpm_be()
        tpm-tis: simplify header inclusion
        tpm-passthrough: workaround a possible race
        tpm-passthrough: simplify create()
        tpm-passthrough: make it safer to destroy after creation
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      411ad781
  3. 16 12月, 2017 1 次提交
  4. 15 12月, 2017 11 次提交
    • P
      sparc: Make sure we mmap at SHMLBA alignment · 57d1f6d7
      Peter Maydell 提交于
      SPARC Linux has an oddity that it insists that mmap()
      of MAP_FIXED memory must be at an alignment defined by
      SHMLBA, which is more aligned than the page size
      (typically, SHMLBA alignment is to 16K, and pages are 8K).
      This is a relic of ancient hardware that had cache
      aliasing constraints, but even on modern hardware the
      kernel still insists on the alignment.
      
      To ensure that we get mmap() alignment sufficient to
      make the kernel happy, change QEMU_VMALLOC_ALIGN,
      qemu_fd_getpagesize() and qemu_mempath_getpagesize()
      to use the maximum of getpagesize() and SHMLBA.
      
      In particular, this allows 'make check' to pass on Sparc:
      we were previously failing the ivshmem tests.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 1512752248-17857-1-git-send-email-peter.maydell@linaro.org
      57d1f6d7
    • D
      io: introduce a network socket listener API · 53047392
      Daniel P. Berrange 提交于
      The existing QIOChannelSocket class provides the ability to
      listen on a single socket at a time. This patch introduces
      a QIONetListener class that provides a higher level API
      concept around listening for network services, allowing
      for listening on multiple sockets.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      53047392
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20171215-v2' into staging · a7cf5391
      Peter Maydell 提交于
      s390x changes for 2.12:
      - Lots of tcg improvements: ccw hotplug is now working and we can run
        a Linux kernel built for z12 under tcg
      - zPCI improvements to get virtio-pci working
      - get rid of the cssid restrictions for virtual and non-virtual channel
        devices
      - we now support 8TB+ systems
      - 2.12 compat machine
      - fixes and cleanups
      
      # gpg: Signature made Fri 15 Dec 2017 10:57:01 GMT
      # gpg:                using RSA key 0xDECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20171215-v2: (46 commits)
        s390-ccw-virtio: allow for systems larger that 7.999TB
        s390x: change the QEMU cpu model to a stripped down z12
        s390x/tcg: we already implement the Set-Program-Parameter facility
        s390x/tcg: implement extract-CPU-time facility
        s390x/tcg: Implement SIGNAL ADAPTER instruction
        s390x/tcg: Implement STORE CHANNEL PATH STATUS
        s390x/tcg: wire up SET CHANNEL MONITOR
        s390x/tcg: wire up SET ADDRESS LIMIT
        s390x/tcg: implement Interlocked-Access Facility 2
        s390x/tcg: ASI/ASGI/ALSI/ALSGI are atomic with Interlocked-acccess facility 1
        s390x/tcg: wire up STORE CHANNEL REPORT WORD
        s390x/tcg: indicate value of TODPR in STCKE
        s390x/tcg: implement SET CLOCK PROGRAMMABLE FIELD
        s390x/tcg: fix and cleanup mcck injection
        s390x/kvm: factor out build_channel_report_mcic() into cpu.h
        s390x/css: attach css bridge
        s390x: deprecate s390-squash-mcss machine prop
        s390x/css: unrestrict cssids
        s390x/pci: search for subregion inside the BARs
        s390x/pci: move the memory region write from pcistg
        ...
      
      # Conflicts:
      #	include/hw/compat.h
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a7cf5391
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20171215' into staging · 96a62988
      Peter Maydell 提交于
      ppc patch queue 2017-12-15
      
      First pull request for qemu-2.12.  This has quite a bit of stuff
      accumulated while 2.11 was finalizing.  Highlights are:
      
        * Some preliminary work towards implementing the "XIVE" POWER9
          interrupt controller
        * Some fixes for problems during reboot with MTTCG
        * A substantial TCG performance improvement via
          tcg_get_lookup_and_goto_ptr
        * Numerous assorted cleanups and bugfixes that weren't urgent enough
          for 2.11
      
      # gpg: Signature made Fri 15 Dec 2017 03:14:12 GMT
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.12-20171215: (24 commits)
        spapr: don't initialize PATB entry if max-cpu-compat < power9
        spapr: Assume msi_nonbroken
        spapr: Rename machine init functions for clarity
        target/ppc: introduce the PPC_BIT() macro
        spapr_events: drop bogus cell from "interrupt-ranges" property
        spapr: fix LSI interrupt specifiers in the device tree
        spapr: replace numa_get_node() with lookup in pc-dimm list
        spapr: introduce a spapr_qirq() helper
        spapr: introduce a spapr_irq_set_lsi() helper
        spapr: move the IRQ allocation routines under the machine
        ppc/xics: assign of the CPU 'intc' pointer under the core
        ppc/xics: introduce an icp_create() helper
        spapr/rtas: do not reset the MSR in stop-self command
        spapr/rtas: fix reboot of a a SMP TCG guest
        spapr/rtas: disable the decrementer interrupt when a CPU is unplugged
        e500: fix pci host bridge class/type
        openpic: debug w/ info_report()
        pcc: define the Power-saving mode Exit Cause Enable bits in PowerPCCPUClass
        nvram: add AT24Cx i2c eeprom
        e500: name openpic and pci host bridge
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      96a62988
    • C
      s390-ccw-virtio: allow for systems larger that 7.999TB · bb223055
      Christian Borntraeger 提交于
      KVM does not allow memory regions > KVM_MEM_MAX_NR_PAGES, basically
      limiting the memory per slot to 8TB-4k. As memory slots on s390/kvm must
      be a multiple of 1MB we need start a new memory region if we cross
      8TB-1M.
      
      With that (and optimistic overcommitment in the kernel) I was able to
      start a 24TB guest on a 1TB system.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Message-Id: <20171211122146.162430-1-borntraeger@de.ibm.com>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      [CH: 1UL -> 1ULL in KVM_MEM_MAX_NR_PAGES; build fix on 32 bit hosts]
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      bb223055
    • P
      Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20171214-tag' into staging · 1c3b51a7
      Peter Maydell 提交于
      Xen 2017/12/14
      
      # gpg: Signature made Fri 15 Dec 2017 00:26:26 GMT
      # gpg:                using RSA key 0x894F8F4870E1AE90
      # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>"
      # gpg:                 aka "Stefano Stabellini <sstabellini@kernel.org>"
      # Primary key fingerprint: D04E 33AB A51F 67BA 07D3  0AEA 894F 8F48 70E1 AE90
      
      * remotes/sstabellini/tags/xen-20171214-tag:
        xen/pt: Set is_express to avoid out-of-bounds write
        xenfb: activate input handlers for raw pointer devices
        xenfb: Add [feature|request]-raw-pointer
        xenfb: Use Input Handlers directly
        ui: generate qcode to linux mappings
        xen-disk: use an IOThread per instance
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1c3b51a7
    • S
      tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size · 683c4b77
      Stefan Berger 提交于
      If the requested buffer size of the frontend is smaller than the fixed
      buffer size of the host's TPM, fail the startup_tpm() interface function,
      which will make the device unusable. We fail it because the backend TPM
      could produce larger packets than what the frontend could pass to the OS.
      
      The current combination of TIS frontend and either passthrough or emulator
      backend will not lead to this case since the TIS can support any size of
      buffer.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      683c4b77
    • S
      tpm: tpm_emulator: get and set buffer size of device · 9375c44f
      Stefan Berger 提交于
      Convert the tpm_emulator backend to get the current buffer size
      of the external device and set it to the buffer size that the
      frontend (TIS) requests.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      9375c44f
    • S
      tpm: tpm_passthrough: Read the buffer size from the host device · abc5cda0
      Stefan Berger 提交于
      Rather than hard coding the buffer size in the tpm_passthrough
      backend read the TPM I/O buffer size from the host device.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      abc5cda0
    • S
    • S
      tpm: Move getting TPM buffer size to backends · b21e6aaf
      Stefan Berger 提交于
      Rather than setting the size of the TPM buffer in the front-end,
      query the backend for the size of the buffer. In this patch we
      just move the hard-coded buffer size of 4096 to the backends.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      b21e6aaf