From patchwork Tue Jul 20 20:42:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cam Macdonell X-Patchwork-Id: 113069 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6KKgOaL020472 for ; Tue, 20 Jul 2010 20:42:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761571Ab0GTUmV (ORCPT ); Tue, 20 Jul 2010 16:42:21 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:55918 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758636Ab0GTUmV (ORCPT ); Tue, 20 Jul 2010 16:42:21 -0400 Received: by qyk38 with SMTP id 38so2738031qyk.19 for ; Tue, 20 Jul 2010 13:42:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.199.2 with SMTP id eq2mr2103162vcb.3.1279658539810; Tue, 20 Jul 2010 13:42:19 -0700 (PDT) Received: by 10.220.160.10 with HTTP; Tue, 20 Jul 2010 13:42:19 -0700 (PDT) Date: Tue, 20 Jul 2010 14:42:19 -0600 X-Google-Sender-Auth: eP2tct4B5NP8Z40BKhtd7pilKeI Message-ID: Subject: [BUG?] vhost assert error with < 4GB of RAM From: Cam Macdonell To: KVM General , "Michael S. Tsirkin" 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 20 Jul 2010 20:42:24 +0000 (UTC) diff --git a/exec.c b/exec.c index 5e9a5b7..991abfc 100644 --- a/exec.c +++ b/exec.c @@ -2592,7 +2592,9 @@ void cpu_register_physical_memory_offset(target_phys_addr_t start_addr, ram_addr_t orig_size = size; subpage_t *subpage; - cpu_notify_set_memory(start_addr, size, phys_offset); + if (size > 0) { + cpu_notify_set_memory(start_addr, size, phys_offset); + } if (phys_offset == IO_MEM_UNASSIGNED) {