1. 15 9月, 2015 2 次提交
    • D
      crypto: introduce new module for TLS anonymous credentials · e00adf6c
      Daniel P. Berrange 提交于
      Introduce a QCryptoTLSCredsAnon class which is used to
      manage anonymous TLS credentials. Use of this class is
      generally discouraged since it does not offer strong
      security, but it is required for backwards compatibility
      with the current VNC server implementation.
      
      Simple example CLI configuration:
      
       $QEMU -object tls-creds-anon,id=tls0,endpoint=server
      
      Example using pre-created diffie-hellman parameters
      
       $QEMU -object tls-creds-anon,id=tls0,endpoint=server,\
                     dir=/path/to/creds/dir
      
      The 'id' value in the -object args will be used to associate the
      credentials with the network services. For example, when the VNC
      server is later converted it would use
      
       $QEMU -object tls-creds-anon,id=tls0,.... \
             -vnc 127.0.0.1:1,tls-creds=tls0
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      e00adf6c
    • D
      crypto: introduce new base module for TLS credentials · a090187d
      Daniel P. Berrange 提交于
      Introduce a QCryptoTLSCreds class to act as the base class for
      storing TLS credentials. This will be later subclassed to provide
      handling of anonymous and x509 credential types. The subclasses
      will be user creatable objects, so instances can be created &
      deleted via 'object-add' and 'object-del' QMP commands respectively,
      or via the -object command line arg.
      
      If the credentials cannot be initialized an error will be reported
      as a QMP reply, or on stderr respectively.
      
      The idea is to make it possible to represent and manage TLS
      credentials independently of the network service that is using
      them. This will enable multiple services to use the same set of
      credentials and minimize code duplication. A later patch will
      convert the current VNC server TLS code over to use this object.
      
      The representation of credentials will be functionally equivalent
      to that currently implemented in the VNC server with one exception.
      The new code has the ability to (optionally) load a pre-generated
      set of diffie-hellman parameters, if the file dh-params.pem exists,
      whereas the current VNC server will always generate them on startup.
      This is beneficial for admins who wish to avoid the (small) time
      sink of generating DH parameters at startup and/or avoid depleting
      entropy.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a090187d
  2. 10 9月, 2015 1 次提交
    • L
      hw/pci: fix pci_update_mappings() trace events · 0f288f85
      Laszlo Ersek 提交于
      The current trace prototypes and (matching) trace calls lead to
      "unorthodox" PCI BDF notation in at least the stderr trace backend. For
      example, the four BARs of a QXL video card at 00:01.0 (bus 0, slot 1,
      function 0) are traced like this (PID and timestamps removed):
      
        pci_update_mappings_add d=0x7f14a73bf890 00:00.1 0,0x84000000+0x4000000
        pci_update_mappings_add d=0x7f14a73bf890 00:00.1 1,0x80000000+0x4000000
        pci_update_mappings_add d=0x7f14a73bf890 00:00.1 2,0x88200000+0x2000
        pci_update_mappings_add d=0x7f14a73bf890 00:00.1 3,0xd060+0x20
      
      The slot and function values are in reverse order.
      
      Stick with the conventional BDF notation.
      
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Don Koch <dkoch@verizon.com>
      Cc: qemu-trivial@nongnu.org
      Fixes: 7828d750Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      0f288f85
  3. 08 9月, 2015 1 次提交
  4. 03 9月, 2015 1 次提交
  5. 06 8月, 2015 1 次提交
    • S
      block/mirror: limit qiov to IOV_MAX elements · cae98cb8
      Stefan Hajnoczi 提交于
      If mirror has more free buffers than IOV_MAX, preadv(2)/pwritev(2)
      EINVAL failures may be encountered.
      
      It is possible to trigger this by setting granularity to a low value
      like 8192.
      
      This patch stops appending chunks once IOV_MAX is reached.
      
      The spurious EINVAL failure can be reproduced with a qcow2 image file
      and the following QMP invocation:
      
        qmp.command('drive-mirror', device='virtio0', target='/tmp/r7.s1',
                    granularity=8192, sync='full', mode='absolute-paths',
                    format='raw')
      
      While the guest is running dd if=/dev/zero of=/var/tmp/foo oflag=direct
      bs=4k.
      
      Cc: Jeff Cody <jcody@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1435761950-26714-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      cae98cb8
  6. 27 7月, 2015 1 次提交
  7. 07 7月, 2015 8 次提交
  8. 15 6月, 2015 2 次提交
  9. 12 6月, 2015 3 次提交
  10. 11 6月, 2015 1 次提交
  11. 10 6月, 2015 3 次提交
  12. 08 6月, 2015 2 次提交
  13. 04 6月, 2015 1 次提交
  14. 29 5月, 2015 1 次提交
  15. 28 4月, 2015 2 次提交
  16. 10 3月, 2015 1 次提交
  17. 05 3月, 2015 1 次提交
  18. 03 3月, 2015 1 次提交
  19. 10 2月, 2015 4 次提交
  20. 07 2月, 2015 1 次提交
    • P
      virtio-blk: introduce multiread · 95f7142a
      Peter Lieven 提交于
      this patch finally introduces multiread support to virtio-blk. While
      multiwrite support was there for a long time, read support was missing.
      
      The complete merge logic is moved into virtio-blk.c which has
      been the only user of request merging ever since. This is required
      to be able to merge chunks of requests and immediately invoke callbacks
      for those requests. Secondly, this is required to switch to
      direct invocation of coroutines which is planned at a later stage.
      
      The following benchmarks show the performance of running fio with
      4 worker threads on a local ram disk. The numbers show the average
      of 10 test runs after 1 run as warmup phase.
      
                    |        4k        |       64k        |        4k
      MB/s          | rd seq | rd rand | rd seq | rd rand | wr seq | wr rand
      --------------+--------+---------+--------+---------+--------+--------
      master        | 1221   | 1187    | 4178   | 4114    | 1745   | 1213
      multiread     | 1829   | 1189    | 4639   | 4110    | 1894   | 1216
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      95f7142a
  21. 06 2月, 2015 2 次提交