From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgokS-00081X-M8 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 03:55:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgokN-00054I-K1 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 03:55:19 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:49205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgokM-000545-V6 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 03:55:15 -0400 From: "Longpeng(Mike)" Date: Mon, 5 Sep 2016 15:53:30 +0800 Message-ID: <1473062012-42664-1-git-send-email-longpeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH RESEND v4 0/2] targte-i386: Add virtual L3 cache support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com Cc: zhaoshenglong@huawei.com, peter.huangpeng@huawei.com, qemu-devel@nongnu.org, "Longpeng(Mike)" This patchset add virtual L3 cache support. For KVM's linux guest, this will reduces amouts of IPIs under some workloads. In our experiments(vm:1*socket,8*cores,2threads workload:SAP-HANA-PB-testsuite), this reduces 85% guest's resched-IPIs, and the performance improves 7.2%~33.1%. --- Changes since v3: - add 2.8 machine: because 2.7 was released. - makes the commit message more clearly. Changes since v2: - add more useful commit mesage. - rename "compat-cache" to "l3-cache-shared". Changes since v1: - fix the compat problem: set compat_props on PC_COMPAT_2_7. - fix a "intentionally introducde bug": make intel's and amd's consistently. - fix the CPUID.(EAX=4, ECX=3):EAX[25:14]. - test the performance if vcpus running on sparate sockets: with L3 cache, the performance improves 7.2%~33.1%(avg: 15.7%). --- Longpeng(Mike) (2): pc: Add 2.8 machine target-i386: present virtual L3 cache info for vcpus hw/i386/pc_piix.c | 16 +++++++++++++--- hw/i386/pc_q35.c | 13 +++++++++++-- include/hw/compat.h | 2 ++ include/hw/i386/pc.h | 12 ++++++++++++ target-i386/cpu.c | 49 ++++++++++++++++++++++++++++++++++++++++++++----- target-i386/cpu.h | 6 ++++++ 6 files changed, 88 insertions(+), 10 deletions(-) -- 1.8.3.1