From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 42A2C941393 for ; Thu, 20 Jul 2023 10:22:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=4Aol4US19frUne38M9aT3hgvsU1f6EroBpth0YWaK5w=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-MC-Unique:X-Received:X-Received:X-Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:X-Scanned-By:X-Mimecast-Spam-Score:X-Mimecast-Originator:Precedence:List-Unsubscribe:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:X-Gm-Message-State:Content-Type:Content-Disposition; s=20140610; t=1689848548; v=1; b=iEDw05/9lOVvNgVPwdTB5xdw4I+tUGNf8RHv8rj3yqlSMKbcXhsW7psWHmGnJf6F17qjndBD KHQeRcznuVUwyjaFTWr3okFPocbS4fbtEo5dC6doQn2pCZIbp5+Bwk7WfZEZ5/5QD3+LalEDCh/ e1epLLQeomVOibpcPgArwJrU= X-Received: by 127.0.0.2 with SMTP id KMD8YY7687511xbskd1bW4TU; Thu, 20 Jul 2023 03:22:28 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.9742.1689848548307290040 for ; Thu, 20 Jul 2023 03:22:28 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-342-P23pxgjZPgKfcO19fqoPQA-1; Thu, 20 Jul 2023 06:22:21 -0400 X-MC-Unique: P23pxgjZPgKfcO19fqoPQA-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EFE21856F66; Thu, 20 Jul 2023 10:22:20 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.89]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 99C562017D0A; Thu, 20 Jul 2023 10:22:20 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 288DE18009DC; Thu, 20 Jul 2023 12:22:19 +0200 (CEST) Date: Thu, 20 Jul 2023 12:22:19 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jordan Justen , Ard Biesheuvel , Jiewen Yao , Michael Brown Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/IoMmuDxe: add locking to IoMmuAllocateCommonBuffer Message-ID: References: <20230720082438.75669-1-kraxel@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: 42eiUgoprEzxMcGYKVmcWJaOx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="iEDw05/9"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hi, > Not sure why InternalAllocateBuffer() doesn't update mReservedMemBitmap > itself. That would be needed to protect the allocation code paths with > InterlockedCompareExchange32() too. Not a straight forward conversion, current code copies around bitmap snippets, so this logic needs a rewrite to work with InterlockedCompareExchange32(). Don't have the time to do that now (leaving tomorrow for my three week summer vacation ...). take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107095): https://edk2.groups.io/g/devel/message/107095 Mute This Topic: https://groups.io/mt/100251949/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-