Message ID | 1538295197-23704-78-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VEJSbWze"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42NKWP2K1Hz9s1x for <incoming@patchwork.ozlabs.org>; Sun, 30 Sep 2018 19:15:13 +1000 (AEST) Received: from localhost ([::1]:54576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1g6Xok-0000jN-VO for incoming@patchwork.ozlabs.org; Sun, 30 Sep 2018 05:15:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1g6WsJ-0003CA-4V for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1g6WsF-0001JL-4E for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:46 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:46416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1g6WsC-0001GC-Pn for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:41 -0400 Received: by mail-wr1-x441.google.com with SMTP id z3-v6so10453267wrr.13 for <qemu-devel@nongnu.org>; Sun, 30 Sep 2018 01:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=buC5LJviPdA/F7V106S1+r+e1QDM/Z2f38kkF/0eg8E=; b=VEJSbWzeYhmd3M8FUavXWAM1AkRQ5wQrW85qeBw+SfQhHjEDFFn+lU1IuunJKeqztb op8dfGtNhHrEwpWl2K1ZkDtAwJN5Vugm1P+nS7C8qKQeQUYrQXMIJqQhAxHuVOmulx6h dgMajueeP83eHkvVNNhshgNfYw0cF9puhbsrxcas/dT3OnRP7rbc2AUZKtUPbr/SbY27 EM/eHx0pmrdykOBrNWpfzuKvifTjUGIO7lahG2hKdJsexO2WCP8tCQZMugRmJGwW7YE0 9jDSJ1/SG0eQkBrTdWlNDYhWCyZ4kypMlYpe87JCqLqdpbHuktQi+7OtQlm2NAN7nLVu Q/rg== 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 :in-reply-to:references; bh=buC5LJviPdA/F7V106S1+r+e1QDM/Z2f38kkF/0eg8E=; b=AtU/jVq98Ja7iJ1rWFH0sIAzBz2qTs113nwywUopokZydxFJRK6gKdduxCmOIYV9ZB /34oOYcL60Z2V39/ITSx2oer1lvi6HM+LKNndhBy4gzEyn+k5bu6H8PmicBkNnwWGmgF YVu+BcQ6ybJCah2Ri8+S7qEgm/i8M7YL9oIsBMppqD3HxriyGtjY/HOh8hrqa90/9MR6 KT2ivgE7uXug0pTxlYtmulsCuQSPMLvECOMDiFCjh52T+SHVCbkNbfSv6ozcWSo4CQRy AijVWEIvgQLlJFgvGnC3qtKjdgLqQKDUtvkrvY7Ucqjh1tZ6rpT3o5ZTbgYmO9jRPNnM H51A== X-Gm-Message-State: ABuFfohnzAK6QQBoFOGL2vXbiiMfS8jC3y6Dug4e7aa8pFASRdP9mVxY 8yic+OgaiZlYi/VHB5phOHfNriKN X-Google-Smtp-Source: ACcGV605nV0dW7howG4yuEGs2OlvJRJze9nF1lWqyPXa2c10jHEcZ4yP0lkXVbWn2GQvStHKNoy3qg== X-Received: by 2002:adf:e0c9:: with SMTP id e9-v6mr3841642wri.199.1538295278592; Sun, 30 Sep 2018 01:14:38 -0700 (PDT) Received: from 640k.lan (94-36-187-248.adsl-ull.clienti.tiscali.it. [94.36.187.248]) by smtp.gmail.com with ESMTPSA id u76-v6sm11369194wmd.10.2018.09.30.01.14.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 01:14:38 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Sun, 30 Sep 2018 10:13:15 +0200 Message-Id: <1538295197-23704-78-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> References: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PULL 77/79] docs/devel/memory.txt: Document _with_attrs accessors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/79] virtio: Return true from virtio_queue_empty if broken
|
expand
|
diff --git a/docs/devel/memory.txt b/docs/devel/memory.txt index 4fff0d5..42577e1 100644 --- a/docs/devel/memory.txt +++ b/docs/devel/memory.txt @@ -326,8 +326,15 @@ visible as the pci-hole alias clips it to a 0.5GB range. MMIO Operations --------------- -MMIO regions are provided with ->read() and ->write() callbacks; in addition -various constraints can be supplied to control how these callbacks are called: +MMIO regions are provided with ->read() and ->write() callbacks, +which are sufficient for most devices. Some devices change behaviour +based on the attributes used for the memory transaction, or need +to be able to respond that the access should provoke a bus error +rather than completing successfully; those devices can use the +->read_with_attrs() and ->write_with_attrs() callbacks instead. + +In addition various constraints can be supplied to control how these +callbacks are called: - .valid.min_access_size, .valid.max_access_size define the access sizes (in bytes) which the device accepts; accesses outside this range will