1. 19 10月, 2017 2 次提交
  2. 18 10月, 2017 14 次提交
  3. 17 10月, 2017 15 次提交
  4. 16 10月, 2017 9 次提交
    • K
      qemu: argv: parse qemu commandline memory arguments · 67a52f70
      Kothapally Madhu Pavan 提交于
      Existing qemuParseCommandLineMem() will parse "-m 4G" format string.
      This patch allows it to parse "-m size=8126464k,slots=32,maxmem=33554432k"
      format along with existing format. And adds a testcase to validate the changes.
      Signed-off-by: NKothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
      67a52f70
    • L
      hyperv: Map Limit to max_memory and VirtualQuantity to cur_balloon · a765e309
      Ladi Prosek 提交于
      Hyper-V uses its own specific memory management so no mapping is going to
      be perfect. However, it is more correct to map Limit to max_memory (it
      really is the upper limit of what the VM may potentially use) and keep
      cur_balloon equal to total_memory.
      
      The typical value returned from Hyper-V in Limit is 1 TiB, which is not
      really going to work if interpreted as "startup memory" to be ballooned
      away later.
      Signed-off-by: NLadi Prosek <lprosek@redhat.com>
      a765e309
    • L
      hyperv: Escape WQL queries · 5ae2d9c2
      Ladi Prosek 提交于
      The code was vulnerable to SQL injection. Likely not a security issue due to
      WMI SQL and other constraints but still lame. For example:
      
        virsh # dominfo \"
        error: failed to get domain '"'
        error: internal error: SOAP fault during enumeration: code 's:Sender', subcode
        'n:CannotProcessFilter', reason 'The data source could not process the filter.
        The filter might be missing or it might be invalid. Change the filter and try
        the request again.  ', detail 'The WS-Management service cannot process the
        request. The WQL query is invalid. '
      
      This commit fixes the Hyper-V driver by escaping all WMI SQL string parameters.
      
      The same command with the fix:
      
        virsh # dominfo \"
        error: failed to get domain '"'
        error: Domain not found: No domain with name "
      Signed-off-by: NLadi Prosek <lprosek@redhat.com>
      5ae2d9c2
    • L
      hyperv: Fix hypervInitConnection error reporting · bb8c2a76
      Ladi Prosek 提交于
      "%s is not a Hyper-V server" is not a correct generalization of all possible
      error conditions of hypervEnumAndPull. For example:
      
        $ virsh --connect hyperv://localhost/?transport=http
        Enter username for localhost [administrator]:
        Enter administrator's password for localhost: <enters incorrect password>
        error: failed to connect to the hypervisor
        error: internal error: localhost is not a Hyper-V server
      
      This commit removes the general virReportError from hypervInitConnection and
      also the "Invalid query" virReportError from hypervSerializeEprParam, which
      does not correctly describe the error either (virBufferCheckError has
      already set a meaningful error message at that point).
      
      The same scenario with the fix:
      
        $ virsh --connect hyperv://localhost/?transport=http
        Enter username for localhost [administrator]:
        Enter administrator's password for localhost: <enters incorrect password>
        error: failed to connect to the hypervisor
        error: internal error: Transport error during enumeration: User, password or
        similar was not accepted (26)
      Signed-off-by: NLadi Prosek <lprosek@redhat.com>
      bb8c2a76
    • D
      qemu: ensure TLS clients always verify the server certificate · 441d3eb6
      Daniel P. Berrange 提交于
      The default_tls_x509_verify (and related) parameters in qemu.conf
      control whether the QEMU TLS servers request & verify certificates
      from clients. This works as a simple access control system for
      servers by requiring the CA to issue certs to permitted clients.
      This use of client certificates is disabled by default, since it
      requires extra work to issue client certificates.
      
      Unfortunately the code was using this configuration parameter when
      setting up both TLS clients and servers in QEMU. The result was that
      TLS clients for character devices and disk devices had verification
      turned off, meaning they would ignore errors while validating the
      server certificate.
      
      This allows for trivial MITM attacks between client and server,
      as any certificate returned by the attacker will be accepted by
      the client.
      
      This is assigned CVE-2017-1000256  / LSN-2017-0002
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      441d3eb6
    • D
      Use https:// links for most sites · e371b3bf
      Daniel P. Berrange 提交于
      This adds a rule to require https links for the libvirt, qemu
      and kvm websites.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      e371b3bf
    • D
      Remove obsolete TODO file · f72d7cd9
      Daniel P. Berrange 提交于
      We stopped autogenerating a TODO file from RFE bugs a long time
      ago.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f72d7cd9
    • J
      qemu: reserve PCI addresses for implicit i440fx devices · d007ec33
      Ján Tomko 提交于
      Somewhere around commit 9ff9d9f5 reserving entire PCI slots was
      eliminated, as demonstrated by commit 6cc20142.
      
      Reserve the functions required by the implicit devices:
      00:01.0 ISA Bridge
      00:01.1 IDE Controller
      00:01.2 USB Controller (unless USB is disabled)
      00:01.3 Bridge
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1460143
      d007ec33
    • J
      cputest: Make a crippled version of Core-i7-2600 · 91d69cb0
      Jiri Denemark 提交于
      xsaveopt is artificially removed from the host to test disabled feature
      which is only included in QEMU's version of the CPU model.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      91d69cb0