From nobody Fri May 3 10:02:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1622818579; cv=none; d=zohomail.com; s=zohoarc; b=mCfou9gCtn5DtNsZVr3gdKRLDIyk+MSuDLrYmpkK4j1G6HvLT/gsraUkxrTAX65G1U+OXqn5HNlF61Hu6cqh2GNNrRWl+oHffRu+haTf3AR9jd8TM50fdLVqX68wcYLQ7JxhgCYbLUtRslnl3ZAyG8UTYfMclCbrzaIjley8Kz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622818579; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=g+I8DTIFVWclLrCWqrbfXD0Px7p35ujTEEJhHaN0aXk=; b=E4Y09R7pG8yq/0irLEb2gW++0euoXcxeQl1jSpq7EPe9YWNqvqr1CeY02AtjRfZiYIQFVDdZqsS+BYN1grSCIiA1NMI4e5Q/gWKFZ7vVGN6X8Z2shae/hIN2DAASAmoWEyePmVbhsZ5ZQHHGQtHSkRokgLqukMIQk0Bl/6V+Tpo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1622818579182466.3692008609478; Fri, 4 Jun 2021 07:56:19 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-413-P-sNscDaNnGaMNw896oPsQ-1; Fri, 04 Jun 2021 10:56:15 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 11AD8818705; Fri, 4 Jun 2021 14:56:10 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C8E421037F4C; Fri, 4 Jun 2021 14:56:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E737B1800BB8; Fri, 4 Jun 2021 14:56:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 154Ep1Pk003913 for ; Fri, 4 Jun 2021 10:51:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id DFA6C10CB272; Fri, 4 Jun 2021 14:51:00 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D8C1210CB275 for ; Fri, 4 Jun 2021 14:50:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 34E9B857BF9 for ; Fri, 4 Jun 2021 14:50:58 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-525-HBxUepExMR-nUMF01PHX3A-1; Fri, 04 Jun 2021 10:50:55 -0400 Received: by mail-wr1-f42.google.com with SMTP id h8so9573731wrz.8 for ; Fri, 04 Jun 2021 07:50:55 -0700 (PDT) Received: from liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id c12sm7951068wrr.90.2021.06.04.07.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 07:50:54 -0700 (PDT) X-MC-Unique: P-sNscDaNnGaMNw896oPsQ-1 X-MC-Unique: HBxUepExMR-nUMF01PHX3A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=g+I8DTIFVWclLrCWqrbfXD0Px7p35ujTEEJhHaN0aXk=; b=UBdrWefHrLuvh8PwbvDd0W1cO26iw9OucOyEzpPdDJvd4KU9dRUOX08Mfq8JWazb0B Ehg4OqamU8chGtXV/QGoFwzgMe5QkUoULMld2IBSe6Jk+vefNt/6H6M5Bt6NBgMMDKRH AK2FdGKvhX+kC+PKqj/eRAhOffp6OVPblUjZk0bIyzd4jjY102UzY/HhPDts/V/YEdcw D1WUm51MalBDuhp2atvwamUn89CsAkNq12G5J8/4wi+X1lm9sPzbtI57UZAelPUXGzEN CvpB5qXB8HXFX1hH8MoZZW10VHtz5JaSWlZt2OsaZEkTIIVA2qCqyOOn6/HLCE93+OLz AUqA== X-Gm-Message-State: AOAM530sygaihs3Ujyq1WHTcTa8bPeE2W3W+4Qoi7xAsgW2Q0lMMjAnw r04UTkEO4pJCH62xLmx9+o4IOanQwHo= X-Google-Smtp-Source: ABdhPJwZsZNAFrUqoX7pvsMr5kHqblQDa2uHt7BrLdlrxSROeq4B2AZZIUejE070VSqVCvKWumPi+g== X-Received: by 2002:a5d:6c61:: with SMTP id r1mr4323925wrz.309.1622818254451; Fri, 04 Jun 2021 07:50:54 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: libvir-list@redhat.com Subject: [PATCH] ch: set shared drivers Date: Fri, 4 Jun 2021 14:50:52 +0000 Message-Id: <20210604145052.1990166-1-liuwe@microsoft.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 04 Jun 2021 10:53:04 -0400 Cc: Wei Liu , wei.liu@kernel.org, william.douglas@intel.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" We want to use those shared drivers provided by libvirt to avoid implementing our own. Signed-off-by: Wei Liu Reviewed-by: Daniel P. Berrang=C3=A9 --- src/ch/ch_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c index 7d1e97098aef..f1f88ad30cf5 100644 --- a/src/ch/ch_driver.c +++ b/src/ch/ch_driver.c @@ -922,7 +922,7 @@ static virStateDriver chStateDriver =3D { =20 int chRegister(void) { - if (virRegisterConnectDriver(&chConnectDriver, false) < 0) + if (virRegisterConnectDriver(&chConnectDriver, true) < 0) return -1; if (virRegisterStateDriver(&chStateDriver) < 0) return -1; --=20 2.30.2