1. 15 1月, 2019 3 次提交
    • D
      msix: make pba size math more uniform · 17323e8b
      Dongli Zhang 提交于
      In msix_exclusive_bar the bar_pba_size is more than what the pba is
      expected to have, although this never affects the bar size.
      
      Specifically, the math in msix_init_exclusive_bar allocates too much
      memory in some cases.
      
      For example consider nentries = 8.  msix_exclusive_bar will give us
      bar_pba_size = 16.  So 16 bytes.  However 8 bytes would be enough - this
      is all that the spec requires.
      
      So in practice bar_pba_size sometimes allocates an extra 8 bytes but
      never more.
      
      Since each MSIX entry size is 16 bytes, and since we make sure that
      table+pba is a power of two, this always leaves a multiple of 16 bytes
      for the PBA, so extra 8 bytes have no effect.
      
      However, its ugly to have pba size temporary variable have an incorrect
      value.  For consistency switch to the formula used in msix_init.
      Signed-off-by: NDongli Zhang <dongli.zhang@oracle.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      17323e8b
    • D
      pci/pcie: stop plug/unplug if the slot is locked · b9731850
      David Hildenbrand 提交于
      We better stop right away. For now, errors would be partially ignored
      (so the guest might get informed or the device might get unplugged),
      although actual plug/unplug will be reported as failed to the user.
      
      While at it, properly move the check to the pre_plug handler for the plug
      case, as we can test the slot state before the device will be realized.
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      b9731850
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging · 89bd861c
      Peter Maydell 提交于
      x86 queue, 2019-01-14
      
      * Reenable RDTSCP support on Opteron_G[345] CPU models CPU models
        (Borislav Petkov)
      * host-phys-bits-limit option for better control of 5-level EPT
        (Eduardo Habkost)
      * Disable MPX support on named CPU models (Paolo Bonzini)
      * expose HV_CPUID_ENLIGHTMENT_INFO.EAX and HV_CPUID_NESTED_FEATURES.EAX
        as feature words (Vitaly Kuznetsov)
      
      # gpg: Signature made Mon 14 Jan 2019 14:33:55 GMT
      # gpg:                using RSA key 2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/x86-next-pull-request:
        i386/kvm: add a comment explaining why .feat_names are commented out for Hyper-V feature bits
        x86: host-phys-bits-limit option
        target/i386: Disable MPX support on named CPU models
        target-i386: Reenable RDTSCP support on Opteron_G[345] CPU models CPU models
        i386/kvm: expose HV_CPUID_ENLIGHTMENT_INFO.EAX and HV_CPUID_NESTED_FEATURES.EAX as feature words
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      89bd861c
  2. 14 1月, 2019 34 次提交
  3. 12 1月, 2019 3 次提交