From nobody Mon Feb 9 22:38:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1657790064; cv=none; d=zohomail.com; s=zohoarc; b=LQtnKKpnhGKYJe6DvIKOE42QqRd0NN/HiWvNakwryUhNxn2CBgLf7kFL9MMRqKl8kI9jxkUwT5MKEuY5UuHBR3YTdTH9F18Ar8fwsrxXLXYtK1Jr03kMP+bRcKl9Wq+aiUapk14DZeAszzb1oxrC+sHKy/BHOTcrD9haygvMZ10= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657790064; 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=USfF9RVAdTE+tkNnR84GQNeWwGHl3N/1116YVhz6nHg=; b=i/mDDRkITpRBz9DgAiijF/3++/7Ay83VTaE/XiX2pJ6T8Ogp7k7XnEWzZ77iMfXiepzF+czRH+cnM7vd0AWFdJmnhvNOH2/C7nfMRZ8r8Mg7O8uie41hM8fCd7kt2MEHiRgGl1yicZjjEKNbto1aU5eHhI3cXMIHPS8S3355JZY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1657790064964285.3312191947889; Thu, 14 Jul 2022 02:14:24 -0700 (PDT) Received: from localhost ([::1]:34136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBuvP-0007Br-DN for importer@patchew.org; Thu, 14 Jul 2022 05:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBuk0-00057T-Ju for qemu-devel@nongnu.org; Thu, 14 Jul 2022 05:02:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:53111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBujw-0005z9-P5 for qemu-devel@nongnu.org; Thu, 14 Jul 2022 05:02:34 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-646-ug5qrno5Nnycuf51REDsDA-1; Thu, 14 Jul 2022 05:02:29 -0400 Received: by mail-ej1-f69.google.com with SMTP id nc23-20020a1709071c1700b0072b94109144so508355ejc.2 for ; Thu, 14 Jul 2022 02:02:29 -0700 (PDT) Received: from goa-sendmail ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id ku5-20020a170907788500b007262a5e2204sm450019ejc.153.2022.07.14.02.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 02:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657789351; 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=USfF9RVAdTE+tkNnR84GQNeWwGHl3N/1116YVhz6nHg=; b=H60yFxboq6rRbRBKjw+JS7jjAsBBQScLlG7jKWu9mwNeL0sVeDMjTPn0ObdTJxfSwDeb1v JqB/5VZ9wmqisC862L4uj+6b7AkA205pPFBvDnKAXs0cQfdKZHAbk/U57oCbya/EibXYGq Avx7UbbwVLLPrBBx5mAEH+hlklxuuaA= X-MC-Unique: ug5qrno5Nnycuf51REDsDA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=USfF9RVAdTE+tkNnR84GQNeWwGHl3N/1116YVhz6nHg=; b=xtbX8dSlcjx3qs/ufDPOPsi1JQbNKSF+KWIiq2v8Fx2RIFDY3YHZV3fHfqrTxkj0O+ DNNsssTSBf70AO+nbCRNnyskXVHul814Rh7ZiUqTsmU1Akn+jP388kDCiMcmFXrJstDk /5wnnwqNzQevJ+UHVEDWn/DenoKsxfuZJ2xf98i6xy7Gs6k3hhnkwdTr6cvtXD4mE2Dj IxvPF/G53T6sVlBBHeRS7BPTxsb3XF/EI6/cQisf7yliStlvXAywsg3QFXAtznHpo5mu pNRje07X/AKYVP6E/t7rPjiK+zD3z20PRTB3nZeHV+nTmYPC2e2LFkaAUU5LMFRBE423 CooQ== X-Gm-Message-State: AJIora+zMVval6Zs3ryAjvk8gf77Wwv68rm4KMRuNfEvmq/ivDX4Ql8c Yc27ug0+O0b7XEr2+SxZIz194V6arGMKBl/AxcD2FYcPHQG3E/oRg18mldtT43S/bF6UH7YmmFV cyGdtEOaKTXV+tn7LjpRy7gL7Oo/ifHI0c29JCfZS7TNsM3ZSGNA30ekx+CNkxHgwWO4= X-Received: by 2002:a05:6402:150d:b0:43a:2cac:ca24 with SMTP id f13-20020a056402150d00b0043a2cacca24mr10918791edw.110.1657789347958; Thu, 14 Jul 2022 02:02:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sBLhCN8SoRHQG/0mjZY/MsDnVbORFp6Z/4ysECx1GpzGqsU9viLCjpaJBWU+Wx5645Rk1RmA== X-Received: by 2002:a05:6402:150d:b0:43a:2cac:ca24 with SMTP id f13-20020a056402150d00b0043a2cacca24mr10918760edw.110.1657789347616; Thu, 14 Jul 2022 02:02:27 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland Subject: [PULL 08/20] q800: implement compat_props to enable quirk_mode_page_apple_vendor for scsi-cd devices Date: Thu, 14 Jul 2022 11:01:59 +0200 Message-Id: <20220714090211.304305-9-pbonzini@redhat.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220714090211.304305-1-pbonzini@redhat.com> References: <20220714090211.304305-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1657790065367100001 Content-Type: text/plain; charset="utf-8" From: Mark Cave-Ayland By default quirk_mode_page_apple_vendor should be enabled for all scsi-cd d= evices connected to the q800 machine to enable MacOS to detect and use them. Signed-off-by: Mark Cave-Ayland Message-Id: <20220622105314.802852-4-mark.cave-ayland@ilande.co.uk> Signed-off-by: Paolo Bonzini --- hw/m68k/q800.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c index 099a758c6f..6fabd35529 100644 --- a/hw/m68k/q800.c +++ b/hw/m68k/q800.c @@ -686,6 +686,11 @@ static void q800_init(MachineState *machine) } } =20 +static GlobalProperty hw_compat_q800[] =3D { + { "scsi-cd", "quirk_mode_page_apple_vendor", "on"}, +}; +static const size_t hw_compat_q800_len =3D G_N_ELEMENTS(hw_compat_q800); + static void q800_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc =3D MACHINE_CLASS(oc); @@ -695,6 +700,7 @@ static void q800_machine_class_init(ObjectClass *oc, vo= id *data) mc->max_cpus =3D 1; mc->block_default_type =3D IF_SCSI; mc->default_ram_id =3D "m68k_mac.ram"; + compat_props_add(mc->compat_props, hw_compat_q800, hw_compat_q800_len); } =20 static const TypeInfo q800_machine_typeinfo =3D { --=20 2.36.1