From: Lynda Yang Subject: Write bit in Shadow Page Table Entry Date: Thu, 23 Jul 2009 13:49:18 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm Return-path: Received: from mail-qy0-f185.google.com ([209.85.221.185]:55771 "EHLO mail-qy0-f185.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbZGWUtT (ORCPT ); Thu, 23 Jul 2009 16:49:19 -0400 Received: by qyk15 with SMTP id 15so181604qyk.33 for ; Thu, 23 Jul 2009 13:49:19 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Hi, As I understand, the KVM code (kvm-86) may clear the write bit when setting a shadow page table entry so that it can detect when an entry needs to be marked dirty later. However, it also plays with the write bit depending on whether the shadow page is allowed to be unsynched or not. I'm not quite clear on the latter, so if anyone can provide some insights it would be very much appreciated. Or perhaps even more helpful...if it is possible to provide a clear picture of how KVM generally plays with an entry's write bit. Thank you!, -Lynda Yang