qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Yu Zhang <yu.zhang@ionos.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	Jinpu Wang <jinpu.wang@ionos.com>,
	Elmar Gerdes <elmar.gerdes@ionos.com>
Subject: Re: about QEMU TLS
Date: Thu, 17 Aug 2023 11:49:43 +0100	[thread overview]
Message-ID: <ZN37R//1H+rDTzeS@redhat.com> (raw)
In-Reply-To: <CAHEcVy6_HUjwvww9WrqeqruYRyEDwq1Tee-tm3mxaQE=w92-HA@mail.gmail.com>

On Mon, Aug 07, 2023 at 12:07:31AM +0200, Yu Zhang wrote:
> Hi all,
> 
> According to qemu docs [1], TLS parameters are specified as an object in
> the QEMU command line:
> 
>    -object tls-creds-x509,id=id,endpoint=endpoint,dir=/path/to/cred/dir ...
> 
> of which "endpoint" is a type of "QCryptoTLSCredsEndpoint" and can be
> either a "server" or a "client".
> 
> I'd like to know:
> 
> - When a VM is started with this config, is there a way (e.g. QMP) to
> change the value of "endpoint"?
>   If possible, how to do this? or else after the first migration of a VM,
> the VM has "endpoint=server",
>   which can't be migrated without stop / start.

Use object_del + object_add to delete the old credentials and
create new ones.

> - In which case does the QEMU reload its TLS certificate, e.g. when a QEMU
> VM has been run longer
>   than the valid period of its TLS certificate?

The certs are loaded at the time the incoming/outgoing migration
operation is initiated, so they are always fresh.

> - The migration is done by using HMP monitor on both source and target
> side. Is it possible to do it
>   by using QMP commands?

Almost everything in HMP has an equivalent QMP command.


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2023-08-17 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-06 22:07 about QEMU TLS Yu Zhang
2023-08-17 10:49 ` Daniel P. Berrangé [this message]
2023-08-21 14:29   ` Yu Zhang
2024-06-11 15:57     ` Yu Zhang
2024-06-12  7:44       ` Yu Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZN37R//1H+rDTzeS@redhat.com \
    --to=berrange@redhat.com \
    --cc=elmar.gerdes@ionos.com \
    --cc=jinpu.wang@ionos.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yu.zhang@ionos.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).