From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC PATCH 2/5] Minimal RAM API support Date: Sun, 11 Jul 2010 21:20:01 +0300 Message-ID: <4C3A0B51.9050104@redhat.com> References: <20100711180910.20121.93313.stgit@localhost6.localdomain6> <20100711180923.20121.58599.stgit@localhost6.localdomain6> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, pugs@cisco.com, chrisw@redhat.com, mst@redhat.com To: Alex Williamson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35863 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753534Ab0GKSUw (ORCPT ); Sun, 11 Jul 2010 14:20:52 -0400 In-Reply-To: <20100711180923.20121.58599.stgit@localhost6.localdomain6> Sender: kvm-owner@vger.kernel.org List-ID: On 07/11/2010 09:09 PM, Alex Williamson wrote: > This adds a minimum chunk of Anthony's RAM API support so that we > can identify actual VM RAM versus all the other things that make > use of qemu_ram_alloc. > > typedef void CPUWriteMemoryFunc(void *opaque, target_phys_addr_t addr, uint32_t value); > diff --git a/memory.c b/memory.c > new file mode 100644 > index 0000000..f5f9273 > --- /dev/null > +++ b/memory.c > @@ -0,0 +1,77 @@ > +/* > + * virtual page mapping and translated block handling > + * > + * Copyright (c) 2003 Fabrice Bellard > Really? Looks like new code. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.