From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D16ECC07E99 for ; Fri, 9 Jul 2021 05:44:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BA5861447 for ; Fri, 9 Jul 2021 05:44:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BA5861447 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1jJ9-00084Q-No for qemu-devel@archiver.kernel.org; Fri, 09 Jul 2021 01:44:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1izN-0004nE-MP for qemu-devel@nongnu.org; Fri, 09 Jul 2021 01:23:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:20667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1izM-0004hA-6e for qemu-devel@nongnu.org; Fri, 09 Jul 2021 01:23:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625808227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5D+EToDAJQhJC8kVEchfcfbI2sOBmm92mCxEsoeyDYo=; b=H1eebe2afWgpCqtSSnWO6A5ej9EOe35WTfPhNfhlcpPpXRJM/BFf9xKp591PTFN/Ly7D0W 6u2vmnf/bxjyGfpWA5+L4AGHqhy/HjNRKsbrZz+JE9Uqk6wlFZer7wENaU+34qCUOZc8RY 70EhAnIUl3mqEFzzMM/4/QJziYT4XX0= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-141-8uAEkSrXPnukkg0XswUc9Q-1; Fri, 09 Jul 2021 01:23:46 -0400 X-MC-Unique: 8uAEkSrXPnukkg0XswUc9Q-1 Received: by mail-pj1-f72.google.com with SMTP id q9-20020a17090a0649b029016ffc6b9665so7675308pje.1 for ; Thu, 08 Jul 2021 22:23:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=5D+EToDAJQhJC8kVEchfcfbI2sOBmm92mCxEsoeyDYo=; b=MpphJ51pKiVwuFj+jM04S57N3P/0226ZtwHbd/vT2W6qD60kc7s+ng2wcvwo7u6MUo xOfVtLO6SJYFAo9ctJ44+mEZqaTqwA/rxjN/iO6V6/hXDTVgX4ZJjfCq1eKtdE03E/gf EmMBMpyd566gNVziZ+8S1Igat5rWWGGko5Bj17YnoFsOazZjlBhhnZgaIBfhy4lCamGG Cm/ytFowFx7ZFwXv59YFYwY9mPUYlZ+kNOejnE0HjfewvBbl8uOTxHTp0Do5S0Cv/STU cwzzqBRV6rjXFugEtNhVQ+0nXpPU7OMXG9XkrMbWo2gRvhsI5iyhh45sVqk+TUA2T5Vc M7Xw== X-Gm-Message-State: AOAM5336L+1eQ961vEJQZW8zLcotGtcAzL7h8eyNUb4OR56v0sWTJ4kL aZRG3KUTUtMmhR28PM/P/GKuGtk7DqAKvuNRTAo90QEvSpXJNV3hXM3qY3m1CQVxxJUnCT7ldtw uo9h1L37PEIJ1SVkhSTgx5nWNK9nyPJXzq7DQ3tF3bTL3FIp50seecBY3rqm3OIuJsiA= X-Received: by 2002:a63:1214:: with SMTP id h20mr35138735pgl.355.1625808225156; Thu, 08 Jul 2021 22:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDFVlywo3MFqiC9DNQoOBgzKbSmzNgvjvJ8sWeHFXbM0+dbUj88a21E/B4BD+Hmv0jeVSqeg== X-Received: by 2002:a63:1214:: with SMTP id h20mr35138718pgl.355.1625808224932; Thu, 08 Jul 2021 22:23:44 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d2sm5547287pgh.59.2021.07.08.22.23.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jul 2021 22:23:44 -0700 (PDT) Subject: Re: [PATCH v8 3/9] vhost: add new call back function for config interrupt To: Cindy Lu , mst@redhat.com, qemu-devel@nongnu.org References: <20210706072030.32365-1-lulu@redhat.com> <20210706072030.32365-4-lulu@redhat.com> From: Jason Wang Message-ID: <0ab1982d-5014-7fe5-64c1-b0b6a7c00df8@redhat.com> Date: Fri, 9 Jul 2021 13:23:41 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210706072030.32365-4-lulu@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jasowang@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=216.205.24.124; envelope-from=jasowang@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.45, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MIME_CHARSET_FARAWAY=2.45, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" ÔÚ 2021/7/6 ÏÂÎç3:20, Cindy Lu дµÀ: > To support configure interrupt, we need to > add a new call back function for config interrupt. > > Signed-off-by: Cindy Lu Acked-by: Jason Wang > --- > include/hw/virtio/vhost-backend.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/hw/virtio/vhost-backend.h b/include/hw/virtio/vhost-backend.h > index 8a6f8e2a7a..8ade8e0bd2 100644 > --- a/include/hw/virtio/vhost-backend.h > +++ b/include/hw/virtio/vhost-backend.h > @@ -125,6 +125,8 @@ typedef int (*vhost_get_device_id_op)(struct vhost_dev *dev, uint32_t *dev_id); > > typedef bool (*vhost_force_iommu_op)(struct vhost_dev *dev); > > +typedef int (*vhost_set_config_call_op)(struct vhost_dev *dev, > + int fd); > typedef struct VhostOps { > VhostBackendType backend_type; > vhost_backend_init vhost_backend_init; > @@ -170,6 +172,7 @@ typedef struct VhostOps { > vhost_vq_get_addr_op vhost_vq_get_addr; > vhost_get_device_id_op vhost_get_device_id; > vhost_force_iommu_op vhost_force_iommu; > + vhost_set_config_call_op vhost_set_config_call; > } VhostOps; > > extern const VhostOps user_ops;