|
| From: | Stefan Berger |
| Subject: | Re: [Qemu-devel] [PATCH 42/42] WIP: add TPM CRB device |
| Date: | Tue, 10 Oct 2017 14:28:19 -0400 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 10/09/2017 06:56 PM, Marc-André Lureau wrote:
+
+static void tpm_crb_realizefn(DeviceState *dev, Error **errp)
+{
+ CRBState *s = CRB(dev);
+ SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
+
+ if (!tpm_find()) {
+ error_setg(errp, "at most one TPM device is permitted");
Shouldn't that be the case if tpm_find() != NULL ?
| [Prev in Thread] | Current Thread | [Next in Thread] |