x86 queue, 2019-04-25
The following changes since commit 3284aa128153750f14a61e8a96fd085e6f2999b6:
Merge remote-tracking branch 'remotes/lersek/tags/edk2-pull-2019-04-22' into staging (2019-04-24 13:19:41 +0100)
are available in the Git repository at:
git://github.com/ehabkost/qemu.git tags/x86-next-pull-request
for you to fetch changes up to a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c:
Pass through cache information for TOPOEXT CPUs (2019-04-25 14:52:28 -0300)
----------------------------------------------------------------
x86 queue, 2019-04-25
* Hygon Dhyana CPU model (Pu Wen)
* Categorize a few devices in hw/i386 (Ernest Esene)
* Support host-cache-info on TOPOEXT CPUID leaf (Stanislav Lanci)
----------------------------------------------------------------
Ernest Esene (2):
Categorize devices: IGD passthrough ISA bridge
Categorize devices: iommu
Pu Wen (1):
i386: Add new Hygon 'Dhyana' CPU model
Stanislav Lanci (1):
Pass through cache information for TOPOEXT CPUs
target/i386/cpu.h | 2 ++ hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ hw/i386/pc_piix.c | 1 + target/i386/cpu.c | 54 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 61 insertions(+)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 1/4] i386: Add new Hygon 'Dhyana' CPU model
From: Pu Wen <[email protected]>
Add a new base CPU model called 'Dhyana' to model processors from Hygon Dhyana(family 18h), which derived from AMD EPYC(family 17h).
The following features bits have been removed compare to AMD EPYC:
aes, pclmulqdq, sha_ni
The Hygon Dhyana support to KVM in Linux is already accepted upstream[1]. So add Hygon Dhyana support to Qemu is necessary to create Hygon's own CPU model.
Reference:
[1] https://git.kernel.org/tip/fec98069fb72fb656304a3e52265e0c2fc9adf87
Message-Id: <[email protected]>
--- target/i386/cpu.h | 2 ++ target/i386/cpu.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+)
target/i386/cpu.h +2 -0
@@ -726,6 +726,8 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];#define CPUID_VENDOR_VIA "CentaurHauls" +#define CPUID_VENDOR_HYGON "HygonGenuine" +#define CPUID_MWAIT_IBE (1U << 1)/* Interrupts can exit capability */ #define CPUID_MWAIT_EMX (1U << 0)/* enumeration supported */
target/i386/cpu.c +50 -0
56 lines not on this page · raw message
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 2/4] Categorize devices: IGD passthrough ISA bridge
In reply to Eduardo HabkostFrom: Ernest Esene <[email protected]>
Set category for the device.
Message-Id: <20190327133714.GA9329@erokenlabserver>
--- hw/i386/pc_piix.c | 1 + 1 file changed, 1 insertion(+)
hw/i386/pc_piix.c +1 -0
@@ -911,6 +911,7 @@ static void isa_bridge_class_init(ObjectClass *klass, void *data)PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); dc->desc ="ISA bridge faked to support IGD PT" ; +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); k->vendor_id =PCI_VENDOR_ID_INTEL ; k->class_id =PCI_CLASS_BRIDGE_ISA ; };
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 3/4] Categorize devices: iommu
In reply to Eduardo HabkostFrom: Ernest Esene <[email protected]>
Set category and description for iommu devices.
Message-Id: <20190327170518.GA16887@erokenlabserver>
--- hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ 2 files changed, 4 insertions(+)
hw/i386/amd_iommu.c +2 -0
@@ -1601,6 +1601,8 @@ static void amdvi_class_init(ObjectClass *klass, void* data) dc_class->int_remap = amdvi_int_remap;/* Supported by the pc-q35-* machine types */ dc->user_creatable = true; +set_bit (DEVICE_CATEGORY_MISC , dc->categories); + dc->desc ="AMD IOMMU (AMD-Vi) DMA Remapping device" ; }static const TypeInfo amdvi = {
hw/i386/intel_iommu.c +2 -0
@@ -3741,6 +3741,8 @@ static void vtd_class_init(ObjectClass *klass, void *data) x86_class->int_remap = vtd_int_remap;/* Supported by the pc-q35-* machine types */ dc->user_creatable = true; +set_bit (DEVICE_CATEGORY_MISC , dc->categories); + dc->desc ="Intel IOMMU (VT-d) DMA Remapping device" ; }static const TypeInfo vtd_info = {
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 4/4] Pass through cache information for TOPOEXT CPUs
In reply to Eduardo HabkostFrom: Stanislav Lanci <[email protected]>
Message-Id: <[email protected]>
--- target/i386/cpu.c | 4 ++++ 1 file changed, 4 insertions(+)
target/i386/cpu.c +4 -0
@@ -4591,6 +4591,10 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,break ;case 0x8000001D : *eax =0 ; +if (cpu->cache_info_passthrough) { +host_cpuid (index, count, eax, ebx, ecx, edx); +break ; + }switch (count) {case 0 :/* L1 dcache info */ encode_cache_cpuid8000001d(env->cache_info_amd.l1d_cache, cs,
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
Peter Maydell
AppliedQuoted 13 lines · Eduardo Habkost
The following changes since commit
3284aa128153750f14a61e8a96fd085e6f2999b6:Merge remote-tracking branch 'remotes/lersek/tags/edk2-pull-2019-04-22' into staging (2019-04-24 13:19:41 +0100)
are available in the Git repository at:
git://github.com/ehabkost/qemu.gittags/x86-next-pull-requestfor you to fetch changes up to
a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c:Pass through cache information for TOPOEXT CPUs (2019-04-25 14:52:28 -0300)
Quoted 8 lines
----------------------------------------------------------------
x86 queue, 2019-04-25* Hygon Dhyana CPU model (Pu Wen)
* Categorize a few devices in hw/i386 (Ernest Esene)
* Support host-cache-info on TOPOEXT CPUID leaf (Stanislav Lanci)----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM