1. 28 3月, 2017 1 次提交
  2. 16 3月, 2017 7 次提交
    • D
      migration: use "" as the default for tls-creds/hostname · 4af245dc
      Daniel P. Berrange 提交于
      The tls-creds parameter has a default value of NULL indicating
      that TLS should not be used. Setting it to non-NULL enables
      use of TLS. Once tls-creds are set to a non-NULL value via the
      monitor, it isn't possible to set them back to NULL again, due
      to current implementation limitations. The empty string is not
      a valid QObject identifier, so this switches to use "" as the
      default, indicating that TLS will not be used
      
      The tls-hostname parameter has a default value of NULL indicating
      the the hostname from the migrate connection URI should be used.
      Again, once tls-hostname is set non-NULL, to override the default
      hostname for x509 cert validation, it isn't possible to reset it
      back to NULL via the monitor. The empty string is not a valid
      hostname, so this switches to use "" as the default, indicating
      that the migrate URI hostname should be used.
      
      Using "" as the default for both, also means that the monitor
      commands "info migrate_parameters" / "query-migrate-parameters"
      will report existance of tls-creds/tls-parameters even when set
      to their default values.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      4af245dc
    • M
      qapi2texi: Implement boxed argument documentation · c2dd311c
      Markus Armbruster 提交于
      This replaces manual references like "For the arguments, see the
      documentation of ..." by a generated reference "Arguments: the members
      of ...".
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1489582656-31133-25-git-send-email-armbru@redhat.com>
      c2dd311c
    • M
      qapi: The #optional tag is redundant, drop · 1d8bda12
      Markus Armbruster 提交于
      We traditionally mark optional members #optional in the doc comment.
      Before commit 3313b612, this was entirely manual.
      
      Commit 3313b612 added some automation because its qapi2texi.py relied
      on #optional to determine whether a member is optional.  This is no
      longer the case since the previous commit: the only thing qapi2texi.py
      still does with #optional is stripping it out.  We still reject bogus
      qapi-schema.json and six places for qga/qapi-schema.json.
      
      Thus, you can't actually rely on #optional to see whether something is
      optional.  Yet we still make people add it manually.  That's just
      busy-work.
      
      Drop the code to check, fix up and strip out #optional, along with all
      instances of #optional.  To keep it out, add code to reject it, to be
      dropped again once the dust settles.
      
      No change to generated documentation.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1489582656-31133-18-git-send-email-armbru@redhat.com>
      1d8bda12
    • M
      qapi2texi: Fix up output around #optional · 42bebcc1
      Markus Armbruster 提交于
      We use tag #optional to mark optional members, like this:
      
          # @name: #optional The name of the guest
      
      texi_body() strips #optional, but not whitespace around it.  For the
      above, we get in qemu-qmp-qapi.texi
      
          @item @code{'name'} (optional)
           The name of the guest
          @end table
      
      The extra space can lead to artifacts in output, e.g in
      qemu-qmp-ref.7.pod
      
          =item C<'name'> (optional)
      
           The name of the guest
      
      and then in qemu-qmp-ref.7
      
          .IX Item "name (optional)"
          .Vb 1
          \& The name of the guest
          .Ve
      
      instead of intended plain
      
          .IX Item "name (optional)"
          The name of the guest
      
      Get rid of these artifacts by removing whitespace around #optional
      along with it.
      
      This turns three minus signs in qapi-schema.json into markup, because
      they're now at the beginning of the line.  Drop them, they're unwanted
      there.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <1489582656-31133-11-git-send-email-armbru@redhat.com>
      42bebcc1
    • M
      qapi: Have each QAPI schema declare its name rule violations · 2cfbae3c
      Markus Armbruster 提交于
      qapi.py has a hardcoded white-list of type names that may violate the
      rule on use of upper and lower case.  Add a new pragma directive
      'name-case-whitelist', and use it to replace the hard-coded
      white-list.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1489582656-31133-7-git-send-email-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      2cfbae3c
    • M
      qapi: Have each QAPI schema declare its returns white-list · 1554a8fa
      Markus Armbruster 提交于
      qapi.py has a hardcoded white-list of command names that may violate
      the rules on permitted return types.  Add a new pragma directive
      'returns-whitelist', and use it to replace the hard-coded white-list.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1489582656-31133-6-git-send-email-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      1554a8fa
    • M
      qapi: Make doc comments optional where we don't need them · bc52d03f
      Markus Armbruster 提交于
      Since we added the documentation generator in commit 3313b612, doc
      comments are mandatory.  That's a very good idea for a schema that
      needs to be documented, but has proven to be annoying for testing.
      
      Make doc comments optional again, but add a new directive
      
          { 'pragma': { 'doc-required': true } }
      
      to let a QAPI schema require them.
      
      Add test cases for the new pragma directive.  While there, plug a
      minor hole in includ directive test coverage.
      
      Require documentation in the schemas we actually want documented:
      qapi-schema.json and qga/qapi-schema.json.
      
      We could probably make qapi2texi.py cope with incomplete
      documentation, but for now, simply make it refuse to run unless the
      schema has 'doc-required': true.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1489582656-31133-3-git-send-email-armbru@redhat.com>
      [qapi-code-gen.txt wording tweaked]
      Reviewed-by: NEric Blake <eblake@redhat.com>
      bc52d03f
  3. 07 3月, 2017 2 次提交
  4. 03 3月, 2017 1 次提交
  5. 02 3月, 2017 1 次提交
  6. 01 3月, 2017 2 次提交
  7. 28 2月, 2017 1 次提交
  8. 23 2月, 2017 2 次提交
  9. 22 2月, 2017 1 次提交
  10. 20 2月, 2017 1 次提交
  11. 16 2月, 2017 1 次提交
  12. 14 2月, 2017 2 次提交
  13. 08 2月, 2017 1 次提交
    • D
      ui: fix reporting of VNC auth in query-vnc-servers · 2a7e6857
      Daniel P. Berrange 提交于
      Currently the VNC authentication info is emitted at the
      top level of the query-vnc-servers data. This is wrong
      because the authentication scheme differs between plain
      and websockets when TLS is enabled. We should instead
      report auth against the individual servers. e.g.
      
      (QEMU) query-vnc-servers
      {
          "return": [
              {
                  "clients": [],
                  "id": "default",
                  "auth": "vencrypt",
                  "vencrypt": "x509-vnc",
                  "server": [
                      {
                          "host": "127.0.0.1"
                          "service": "5901",
                          "websocket": false,
                          "family": "ipv4",
                          "auth": "vencrypt",
                          "vencrypt": "x509-vnc"
                      },
                      {
                          "host": "127.0.0.1",
                          "service": "5902",
                          "websocket": true,
                          "family": "ipv4",
                          "auth": "vnc"
                      }
                  ]
              }
          ]
      }
      
      This also future proofs the QMP schema so that we can
      cope with multiple VNC server instances, listening on
      different interfaces or ports, with different auth
      setup.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170203120649.15637-3-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      2a7e6857
  14. 31 1月, 2017 1 次提交
  15. 27 1月, 2017 1 次提交
  16. 23 1月, 2017 1 次提交
  17. 16 1月, 2017 14 次提交