From nobody Thu Apr 18 04:43:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617086574; cv=none; d=zohomail.com; s=zohoarc; b=drBQH6tKLBm5iVGjmXNk1VJuWFUVoV2GMyB4vvnAjaA1JPknGkhupQ5oFu/10tRu41sEGYnq90DkAyq+FHgVXwZN8AymbNmzZNSyYfBIJLTZIjhV5R9O4P/pNGTY+5HF5b6kdLgzcpN2OiwIw5rHyOXLnKC4eargY55GWlEuF30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617086574; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bOz/HN6BRyrZwu5cYLh5uHsBYKELiqKLAg5+LYJHPwk=; b=TQPI+AYH3LW3UBtgTrMgD874QcI81V0i0WswKzR7+VXACFEKfvXzqCwOdVIaF8xWULdb30rCqWQasMmtNhIqgPAyKs1IQ3ToP/LVYIcnAsqbemlVKk6AZ9KD6InmI0lmq3Yfx666xzeng757KEpMqdnCeBTe1K5qaJwN79Tga9E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1617086574291583.8094129745714; Mon, 29 Mar 2021 23:42:54 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-248-ACIvH9lJO62pIbI-8k-A6g-1; Tue, 30 Mar 2021 02:42:47 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 22411107ACCD; Tue, 30 Mar 2021 06:42:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F326D88EEC; Tue, 30 Mar 2021 06:42:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B2E5C4A7CA; Tue, 30 Mar 2021 06:42:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12U6b5uj007605 for ; Tue, 30 Mar 2021 02:37:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id DCF4F5D9F0; Tue, 30 Mar 2021 06:37:05 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-144.pek2.redhat.com [10.72.12.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id A36845D9CC; Tue, 30 Mar 2021 06:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617086570; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bOz/HN6BRyrZwu5cYLh5uHsBYKELiqKLAg5+LYJHPwk=; b=AMno/WkJhgxBsMDvrgGl+QrSSu/xs43rMzXPuOT76/V/51nxKyPZt8wcoB65fjspGL4O9+ aayzRabPx3LJ18Opi52i2bE6f43xzTJhVhNw+EEmj9iuY97pNZ1nfWyEPaEQQIM82RJ98i 8DFswWp/CUAKogHu5XuyaeYWdD976es= X-MC-Unique: ACIvH9lJO62pIbI-8k-A6g-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH 1/3] tests: negative test for hugepages with anonymous memory backing Date: Tue, 30 Mar 2021 14:36:52 +0800 Message-Id: <20210330063654.284991-2-hhan@redhat.com> In-Reply-To: <20210330063654.284991-1-hhan@redhat.com> References: <20210330063654.284991-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Han Han X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Han Han --- .../qemuxml2argvdata/hugepages-anonymous.err | 1 + .../qemuxml2argvdata/hugepages-anonymous.xml | 25 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 27 insertions(+) create mode 100644 tests/qemuxml2argvdata/hugepages-anonymous.err create mode 100644 tests/qemuxml2argvdata/hugepages-anonymous.xml diff --git a/tests/qemuxml2argvdata/hugepages-anonymous.err b/tests/qemuxml= 2argvdata/hugepages-anonymous.err new file mode 100644 index 0000000000..f4ebbf1d1d --- /dev/null +++ b/tests/qemuxml2argvdata/hugepages-anonymous.err @@ -0,0 +1 @@ +unsupported configuration: hugepages are not allowed with anonymous memory= source diff --git a/tests/qemuxml2argvdata/hugepages-anonymous.xml b/tests/qemuxml= 2argvdata/hugepages-anonymous.xml new file mode 100644 index 0000000000..e7ed1f1c51 --- /dev/null +++ b/tests/qemuxml2argvdata/hugepages-anonymous.xml @@ -0,0 +1,25 @@ + + QEMUGuest + 9f4b6512-e73a-4a25-93e8-5307802821ce + 24682468 + 24682468 + + + + + 32 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 12c2b68fd7..6cf1044173 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1268,6 +1268,7 @@ mymain(void) QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_OBJECT_MEMORY_FILE); DO_TEST_PARSE_ERROR("hugepages-memaccess-invalid", NONE); + DO_TEST_PARSE_ERROR("hugepages-anonymous", NONE); DO_TEST("hugepages-memaccess", QEMU_CAPS_OBJECT_MEMORY_FILE, QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_DEVICE_PC_DIMM, QEMU_CAPS_NUMA); --=20 2.30.2 From nobody Thu Apr 18 04:43:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617086419; cv=none; d=zohomail.com; s=zohoarc; b=QxIPEmk8wT3q4dfhqprvT/8o5BpXRURV+U6iFOeEJHwErwjjhGFjlxEtyP1P6Vi7J0dAnLZ/vtg4rkKZnTCE5bUzVhU4EtrNmCJ+STgcTK7AvFXVQSeC9dX2SMaM5OFSQOQ2rbOE3GvKs83DV9QGlXt2mm5uut1J3USitXiHgSY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617086419; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Wz+sJQ/CEIAiaf/mfquIX/I3LADTOJUGgdbZ0C9SSy4=; b=BtpCcFKNweJueyNk0hIThF5FUzEBExgM0mcXvpe72/rTiB/fqQIVGarJJjTrNDvNwET6R5xaOHUNKPaRq3pSIGP9LmK3n3JeXfqwcdPYS1GTaRZZpqBgz766yEoo+ow+bUz5RDfyyiGpDD3607eEUrsJQwhLidO7gQPEM2hTp18= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1617086419380186.0058452293008; Mon, 29 Mar 2021 23:40:19 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-588-SoqmD8ApNZqeuh35bDpbIg-1; Tue, 30 Mar 2021 02:40:16 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E49D5107ACCA; Tue, 30 Mar 2021 06:40:10 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CA33A7944E; Tue, 30 Mar 2021 06:40:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C33334BB7C; Tue, 30 Mar 2021 06:40:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12U6b7o7007615 for ; Tue, 30 Mar 2021 02:37:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id B6D8C299C4; Tue, 30 Mar 2021 06:37:07 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-144.pek2.redhat.com [10.72.12.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7835C5D9CC; Tue, 30 Mar 2021 06:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617086418; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Wz+sJQ/CEIAiaf/mfquIX/I3LADTOJUGgdbZ0C9SSy4=; b=GR6E7Myho4TqWq+1rYtYepZT3LEhe3RlPGjaHSi9UjEQw0SpqGrNfFaLGP6sigU8Dz60h+ ZVw4m+Q4v4IezlmT47QpqWkmuJBA3I+Z6vb5ICAItWlMql2EU6Guk9yeiqB34qqEa+oHi2 B4XrjQhVlaq4s/NQWJMLueDELll55mk= X-MC-Unique: SoqmD8ApNZqeuh35bDpbIg-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH 2/3] tests: negative test for hugepages with ondemand mode Date: Tue, 30 Mar 2021 14:36:53 +0800 Message-Id: <20210330063654.284991-3-hhan@redhat.com> In-Reply-To: <20210330063654.284991-1-hhan@redhat.com> References: <20210330063654.284991-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Han Han X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Han Han --- tests/qemuxml2argvdata/hugepages-ondemand.err | 1 + tests/qemuxml2argvdata/hugepages-ondemand.xml | 25 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 27 insertions(+) create mode 100644 tests/qemuxml2argvdata/hugepages-ondemand.err create mode 100644 tests/qemuxml2argvdata/hugepages-ondemand.xml diff --git a/tests/qemuxml2argvdata/hugepages-ondemand.err b/tests/qemuxml2= argvdata/hugepages-ondemand.err new file mode 100644 index 0000000000..9f27a76b68 --- /dev/null +++ b/tests/qemuxml2argvdata/hugepages-ondemand.err @@ -0,0 +1 @@ +unsupported configuration: hugepages are not allowed with memory allocatio= n ondemand diff --git a/tests/qemuxml2argvdata/hugepages-ondemand.xml b/tests/qemuxml2= argvdata/hugepages-ondemand.xml new file mode 100644 index 0000000000..58920d0150 --- /dev/null +++ b/tests/qemuxml2argvdata/hugepages-ondemand.xml @@ -0,0 +1,25 @@ + + QEMUGuest + 9f4b6512-e73a-4a25-93e8-5307802821ce + 24682468 + 24682468 + + + + + 32 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 6cf1044173..ea38238823 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1269,6 +1269,7 @@ mymain(void) QEMU_CAPS_OBJECT_MEMORY_FILE); DO_TEST_PARSE_ERROR("hugepages-memaccess-invalid", NONE); DO_TEST_PARSE_ERROR("hugepages-anonymous", NONE); + DO_TEST_PARSE_ERROR("hugepages-ondemand", NONE); DO_TEST("hugepages-memaccess", QEMU_CAPS_OBJECT_MEMORY_FILE, QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_DEVICE_PC_DIMM, QEMU_CAPS_NUMA); --=20 2.30.2 From nobody Thu Apr 18 04:43:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617086444; cv=none; d=zohomail.com; s=zohoarc; b=DCFyevMOYMf8pim838YhwXSDWpNFMKozIUwyQY5QHg2aHYZ5FIaMxQg57NPTEi/1XjWmcEvgy+pK3nmkSrbXv8P//zBB5x5AEJeBZbeJj7LajS1VEAIO3kuT5ssX5hqTruORP4cDtdlYnWUMsSSgv5RhoWbH13BCq8ZyiNTsXW8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617086444; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hiSayuhZPYPG1BrBtr1PjBKgLfnJ0AT8xVtL4qh1g/M=; b=YptOQdS3Ap/Jha2HBkJ8ABcZKpntQ2bvPAvU9OIhtIHXY7hHSC+/tf6sYk1c/7HJMHf2EaKBnsDTG6cuu4xPwFyGSWyoi5TzEt4R7Oa2H6bNxCWpB9D4KKdasfUZTuDIG/qFn+n2X1g8L6oQ6Xh6vkjC0zG/KJVlY93gsQOpaKk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1617086444183353.42396761897317; Mon, 29 Mar 2021 23:40:44 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-341-S8sbjtYRMki87uMKRCjzWQ-1; Tue, 30 Mar 2021 02:40:40 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AA601100A649; Tue, 30 Mar 2021 06:40:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BAD496554; Tue, 30 Mar 2021 06:40:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id F01BA1809C83; Tue, 30 Mar 2021 06:40:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12U6b9PE007625 for ; Tue, 30 Mar 2021 02:37:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 878125D9F0; Tue, 30 Mar 2021 06:37:09 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-144.pek2.redhat.com [10.72.12.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E07A5D9CC; Tue, 30 Mar 2021 06:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617086443; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hiSayuhZPYPG1BrBtr1PjBKgLfnJ0AT8xVtL4qh1g/M=; b=hyO4qTLOTj7DFqGLkRIsb/SHdJoHSBV32smWU9xzpUCtf9GedbFRfdefXgMvhubfb5Fg17 5zsyXPG7hD7q8ajFYeE586lRkq/pI/so2i6+15MF24PA9x5+Tg832wrr6cC3D26+dsMcmg 4+Yzxxz4iGjgaTG/kxpNYh3K11TfalY= X-MC-Unique: S8sbjtYRMki87uMKRCjzWQ-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH 3/3] tests: negative test of binding memnode cellid to an nonexist guest cell Date: Tue, 30 Mar 2021 14:36:54 +0800 Message-Id: <20210330063654.284991-4-hhan@redhat.com> In-Reply-To: <20210330063654.284991-1-hhan@redhat.com> References: <20210330063654.284991-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Han Han X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Han Han --- ...une-memnode-cellid-nonexist-guest-cell.err | 1 + ...une-memnode-cellid-nonexist-guest-cell.xml | 31 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 33 insertions(+) create mode 100644 tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist= -guest-cell.err create mode 100644 tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist= -guest-cell.xml diff --git a/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-= cell.err b/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-ce= ll.err new file mode 100644 index 0000000000..b830c6a28c --- /dev/null +++ b/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-cell.err @@ -0,0 +1 @@ +XML error: Argument 'cellid' in memnode element must correspond to existin= g guest's NUMA cell diff --git a/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-= cell.xml b/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-ce= ll.xml new file mode 100644 index 0000000000..710628cfb0 --- /dev/null +++ b/tests/qemuxml2argvdata/numatune-memnode-cellid-nonexist-guest-cell.xml @@ -0,0 +1,31 @@ + + QEMUGuest + 9f4b6512-e73a-4a25-93e8-5307802821ce + 24682468 + 24682468 + 32 + + + + + + hvm + + + + qemu64 + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index ea38238823..31c8894ffc 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2158,6 +2158,7 @@ mymain(void) QEMU_CAPS_OBJECT_MEMORY_RAM); DO_TEST_PARSE_ERROR("numatune-memnode-nocpu", NONE); DO_TEST_PARSE_ERROR("numatune-memnodes-problematic", NONE); + DO_TEST_PARSE_ERROR("numatune-memnode-cellid-nonexist-guest-cell", NON= E); DO_TEST("numad", NONE); DO_TEST("numad-auto-vcpu-static-numatune", NONE); DO_TEST_PARSE_ERROR("numad-auto-vcpu-static-numatune-no-nodeset", NONE= ); --=20 2.30.2