From patchwork Sat Jan 22 13:13:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 498221 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0MDHbPw008121 for ; Sat, 22 Jan 2011 13:17:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753468Ab1AVNO2 (ORCPT ); Sat, 22 Jan 2011 08:14:28 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:43821 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753267Ab1AVNOX (ORCPT ); Sat, 22 Jan 2011 08:14:23 -0500 Received: by mail-iw0-f174.google.com with SMTP id 9so2576180iwn.19 for ; Sat, 22 Jan 2011 05:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=uz7voZk4lwiQfvGf6hc1z6pdB7WgqQtz7hFKMrOtMqs=; b=oYTZvvo5cnmljs+kN47SgpMKQx5GBnnjNQRngbA065cGvDHc73WslIVHGKZXS7XNuB PDXIDnimaVi/o4ehhr4A2XXiGmkhDYlH4kivSZY90u64y5a6GNSKe9tnhr+KhgJFL7VG 03Mmcf27JizqWzyZGM3UXOxGQtkKv+tuuvH8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=kdmLEI3ByGPxY1a+2W25vZfcE0kBDnDVIWqqWS7tNJ8L7AqSPCD8qq+nUIeIh/fwjQ kF6V04xAj6a9E4EqtRaMGLdizh4QzRXsUbNYMeFQtIqT7oWxOXG2RO1obH+4y+HKl+0g y6Df+XS6WQGnlGTMZrZPr6uXWpDbZdBGrsP2A= Received: by 10.42.226.196 with SMTP id ix4mr2224202icb.192.1295702062579; Sat, 22 Jan 2011 05:14:22 -0800 (PST) Received: from localhost.localdomain (p8025-adsao01yokonib2-acca.kanagawa.ocn.ne.jp [219.161.30.25]) by mx.google.com with ESMTPS id i2sm7956638icv.3.2011.01.22.05.14.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Jan 2011 05:14:21 -0800 (PST) From: Akinobu Mita To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org Cc: Akinobu Mita , Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org Subject: [PATCH v5 14/27] kvm: use little-endian bitops Date: Sat, 22 Jan 2011 22:13:46 +0900 Message-Id: <1295702039-23186-15-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1295702039-23186-1-git-send-email-akinobu.mita@gmail.com> References: <1295702039-23186-1-git-send-email-akinobu.mita@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 22 Jan 2011 13:17:58 +0000 (UTC) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 3461001..508fdb1 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1420,7 +1420,7 @@ void mark_page_dirty_in_slot(struct kvm *kvm, struct kvm_memory_slot *memslot, if (memslot && memslot->dirty_bitmap) { unsigned long rel_gfn = gfn - memslot->base_gfn; - ext2_set_bit(rel_gfn, memslot->dirty_bitmap); + __set_bit_le(rel_gfn, memslot->dirty_bitmap); } }