From nobody Fri Nov 14 03:44:18 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1584323052; cv=none; d=zohomail.com; s=zohoarc; b=fdjyxs7kJHm+gDf8cJFJeqkBSW6z4BSYxqI5ptrQaKi1RsS/83QbEqmGo1K6wG1SVkxFN3WyAHUKvvqtu189bcuKnz0iyOqcQJiKuepUZWZKt02R4cBCwHgXBx8g3JH7crw/WK2OrQWdRw3K9iWo1EMnzZKixumgSgaW+iDk3Pc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584323052; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kuMVG+NTWOPLSO3v2C9jYeHA3g0NL+S99GiL6fEWeBk=; b=Zqdbcp20TNqBWYjNz45UTirRfN2+8cq1FWZ5clxCesMNomLhPMsIFDJx77+kE+gSnheLa0TWsraprfhOV3Bu9vHiprZiooqyN5+gJ2h5LbGPnAfcMIXQ/vp6vfx6+fRU6gKCR4f+wYrvlaRdsYvyUUHTb8G/CvtpLq5DLBjMESY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584323052081990.6068882304867; Sun, 15 Mar 2020 18:44:12 -0700 (PDT) Received: from localhost ([::1]:33020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDena-0000oY-Ok for importer@patchew.org; Sun, 15 Mar 2020 21:44:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57775) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDdMT-0008UI-2M for qemu-devel@nongnu.org; Sun, 15 Mar 2020 20:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDdMP-0006hc-0h for qemu-devel@nongnu.org; Sun, 15 Mar 2020 20:12:03 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37189 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDdMO-0006gN-SW for qemu-devel@nongnu.org; Sun, 15 Mar 2020 20:12:00 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-469-s8HI0huWMBup93VmwWnTVQ-1; Sun, 15 Mar 2020 20:11:58 -0400 Received: by mail-wr1-f72.google.com with SMTP id t10so1853148wrp.15 for ; Sun, 15 Mar 2020 17:11:58 -0700 (PDT) Received: from localhost.localdomain (191.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.191]) by smtp.gmail.com with ESMTPSA id x17sm27123353wmi.28.2020.03.15.17.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 17:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584317520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kuMVG+NTWOPLSO3v2C9jYeHA3g0NL+S99GiL6fEWeBk=; b=KTz6AibK6Legq/VRSxRU7azF91knNj80ZwwAq89xIG0Uj9HpeXYKS4waFpl6az8roPGHKV GI0UUz4QMOf2C0uM59Tcan6weXT+Mzqcl7aZK8IvaAtJjTTJEuwxn60VWXOGRvONgRms7y 1SiCZi6kZsSMueiA0Yc2GUdpjrhuFP8= X-MC-Unique: s8HI0huWMBup93VmwWnTVQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I6U+Qw9elflVP4hqM5y7jEbjXrYe0uOEYqqfQofz9BY=; b=t3fA79S3E1JdIfXxABKGGVaV+UJZ02F1LPrFAUKPeE1DB9R+iyC9RDow5qaAT2ZBe+ pGOicsSrk09FC824ly6QDd/bocfywMO2R9wP85RcPsxuOg83E+OUGlmFNPlJ7BgMDKJN M1N7J31kEoJLQihsv8NRBNNqDnQmV1FHvHZ7hJAwJLc/57hg70IFzD5m4CaG3zFJc4qg L/nPu/gUh82lsJWLjL6l834PuwA2uPfZrcHe07Uc1TVwE3HbiautC8nFn6X97UFO9cgr UHmJ0EOAFS7vQA3rPXxuKyrYA/5W4jqcTy+QWhhoXSdALlgiT11GF4UPmhTzZ3JCELuT 3IRw== X-Gm-Message-State: ANhLgQ3MWLBtEoh3ZIc1sPYzY2aMyFtZpYtEqtJw8PJUVgtri0w1Xa5d 5t08qu5S8Soakv1UJlRwo69I50VOZp9XX81aG8EV/vFDobZmSVK6VlRy3ebUuZ6Eac1QfmLj5IQ /fxld3x3qyy1sBQk= X-Received: by 2002:adf:8341:: with SMTP id 59mr17006249wrd.314.1584317517487; Sun, 15 Mar 2020 17:11:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtEuqJgk3lgm+Ek5BkmkSJzmRlOWJ0lZCx8ohYK/tEC4FIjh9NwBPdYntgEPLEtT/O9nF3+LA== X-Received: by 2002:adf:8341:: with SMTP id 59mr17006228wrd.314.1584317517263; Sun, 15 Mar 2020 17:11:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 8/9] hw/core: Add qdev stub for user-mode Date: Mon, 16 Mar 2020 01:11:10 +0100 Message-Id: <20200316001111.31004-9-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200316001111.31004-1-philmd@redhat.com> References: <20200316001111.31004-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 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: , Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost , Michael Roth , Markus Armbruster , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" While user-mode does not use peripherals (devices), it uses a CPU which is a device. In the next commit we will reduce the QAPI generated code for user-mode. Since qdev.c calls qapi_event_send_device_deleted(), let's add a stub for it. Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- v2: use common-obj-$(CONFIG_ALL) (Paolo) --- hw/core/qdev-stubs.c | 20 ++++++++++++++++++++ hw/core/Makefile.objs | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 hw/core/qdev-stubs.c diff --git a/hw/core/qdev-stubs.c b/hw/core/qdev-stubs.c new file mode 100644 index 0000000000..0819dcba12 --- /dev/null +++ b/hw/core/qdev-stubs.c @@ -0,0 +1,20 @@ +/* + * QAPI qdev stubs + * + * Copyright (c) 2020 Red Hat, Inc. + * + * Author: + * Philippe Mathieu-Daud=C3=A9 + * + * This work is licensed under the terms of the GNU GPL, version 2 or late= r. + * See the COPYING file in the top-level directory. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "qapi/qapi-events-qdev.h" + +void qapi_event_send_device_deleted(bool has_device, + const char *device, const char *path) +{ +} diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs index 6215e7c208..9f874a8840 100644 --- a/hw/core/Makefile.objs +++ b/hw/core/Makefile.objs @@ -31,3 +31,6 @@ common-obj-$(CONFIG_OR_IRQ) +=3D or-irq.o common-obj-$(CONFIG_SPLIT_IRQ) +=3D split-irq.o common-obj-$(CONFIG_PLATFORM_BUS) +=3D platform-bus.o common-obj-$(CONFIG_GENERIC_LOADER) +=3D generic-loader.o + +common-obj-$(call lnot,$(CONFIG_SOFTMMU)) +=3D qdev-stubs.o +common-obj-$(CONFIG_ALL) +=3D qdev-stubs.o --=20 2.21.1