Commits
work/cpu-gener…
Name already in use
Commits on Apr 19, 2019
-
WIP: use generic_cpu_list (not working yet because format not set)
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
cpu: Generic cpu_list function
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
cpu: Replace CPUClass::class_by_name with CPUClass::cpu_class_name
Instead of a callback that returns an ObjectClass, make the few architectures that still have a class_by_name callback just return the CPU class name. It will save a few lines of code on each of these implementations. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
ppc64: List QOM type names directly on alias table
Listing the QOM types directly will let us avoid extra ppc_cpu_class_by_name() calls in the code (now object_class_by_name() may be called directly). Having the type names in the table will be also useful when we replace CPUClass::class_by_name with a new callback method that will just return a string. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
tilegx: fixed class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
nios2: fixed class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
microblaze: fixed class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
unicore32: set class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
tricore: set class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
openrisc: set class name format
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
cpu: Let architectures set CPU class name format
Instead of requiring every architecture to implement a class_by_name function, let them set a format string at CPUClass::class_name_format. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
arm: Remove special case for "any" CPU model
We already have an entry for "any" at arm_cpus[], which makes a "any-arm-cpu" QOM type be registered. This means the regular QOM type name lookup code already works and there's no need for a special case. Cc: Peter Maydell <peter.maydell@linaro.org> Cc: qemu-arm@nongnu.org Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
arm: Don't split CPU model string
CPUClass::class_by_name is called after the CPU model name and options were already split, there's no need to split it again. Fixes: fb8d6c2 ("target-arm: Add CPU property to disable AArch64") Cc: Greg Bellows <greg.bellows@linaro.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
riscv: Don't split CPU model string
CPUClass::class_by_name is called after the CPU model name and options were already split, there's no need to split it again. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
cpu: Extract CPU class lookup from parse_cpu_option()
The new function will be useful in user mode, when we already have a CPU model and don't need to parse any extra options. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- Changes v1 -> v2: * Rename function from lookup_cpu_option() to arch_cpu_class_by_name() * Redo patch after changing the return value type of cpu_class_by_name()
-
cpu: Change return type of cpu_class_by_name() to CPUClass*
The function always returns a CPU class. Change the return type to reflect that. I'm not changing the type of CPUClass::class_by_name() yet, because many of those implementations will be eliminated by the next commits. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Commits on Apr 18, 2019
-
linux-headers: add linux/mman.h.
Update it to 4.20-rc1 Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com> Message-Id: <f9346f1816b940a4231524a84d57a2cac8466ccc.1549555521.git.yi.z.zhang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
scripts/update-linux-headers: add linux/mman.h
Add linux/mman.h,asm/mman.h,asm/mman-common.h to linux-headers, So we can use more mmap2 flags. Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com> Message-Id: <f65c78d74859f815aa9c4f97407eb33361a6672c.1549555521.git.yi.z.zhang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
util/mmap-alloc: Add a 'is_pmem' parameter to qemu_ram_mmap
besides the existing 'shared' flags, we are going to add 'is_pmem' to qemu_ram_mmap(), which indicated the memory backend file is a persist memory. Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com> Reviewed-by: Pankaj Gupta <pagupta@redhat.com> Message-Id: <786c46862cfeb253ee0ea2f44d62ffe76edb7fa4.1549555521.git.yi.z.zhang@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Pankaj Gupta <pagupta@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
cpu: Fix crash with empty -cpu option
Fix the following crash: $ qemu-system-x86_64 -cpu '' qemu-system-x86_64: qom/cpu.c:291: cpu_class_by_name: \ Assertion `cpu_model && cc->class_by_name' failed. Regression test script included. Fixes: 99193d8 ("cpu: drop unnecessary NULL check and cpu_common_class_by_name()") Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190418034501.5038-1-ehabkost@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Tested-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> -
cpu: Rename parse_cpu_model() to parse_cpu_option()
The "model[,option...]" string parsed by the function is not just a CPU model. Rename the function and its argument to indicate it expects the full "-cpu" option to be provided. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190417025944.16154-2-ehabkost@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
Exploit that argument @name is nerver null. Check is_help_option() first, because that's what we do elsewhere. If we (foolishly!) defined a machine named "help", -machine help would now print help instead of selecting the machine named "help". Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190405064121.23662-5-richardw.yang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
vl: Clean up after previous commit
Since the previous commit, find_machine() and find_default_machine() don't have to deallocate on return. This permits further simplifications. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190405064121.23662-4-richardw.yang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-
vl.c: allocate TYPE_MACHINE list once during bootup
Now all the functions used to select machine is local and the call flow looks like below: select_machine() find_default_machine() machine_parse() find_machine() All these related function will need a GSList for TYPE_MACHINE. Currently we allocate this list each time we use it, while this is not necessary to do so because we don't need to modify this. This patch make the TYPE_MACHINE list allocation in select_machine and pass this to its child for use. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190405064121.23662-3-richardw.yang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>