mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
acpi,pc,pci,virtio,memory bug fixes
This collects several small fixes from all over the place. Additionally, Marcel's changes make acpi unit tests more robust. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJTHL2xAAoJECgfDbjSjVRpAHQH/itdRvT3ILcoCn4gIgfBpq1w BuqdXBtLx5yiNSWiZoZZQ0HIaf6DUuCY7bRE7CwijjwDHNsMyweslT1L3f/T6g7l OcxOtDbs0Vtnv7w/FBc9hPRTBYPQk5O4/IFmfI9hGivcq7T2y/s36709ahtSGgQK iF5+1zI+mu4FPYDaX9s94barn6Sq+Ag56I7rybkAZ+X0OAASBwsF+8s8q+wAmLoF QBk7/U+EpcR/9GwxKoN6Mg8gs+kOXi5imkeLN+YnSttEhq87Zk2OU9RPQqanWC5X mEykhxcn6kQtpmQS19XkwU2pPOSZyytx+CrxLicVtackKynzLqNFzPtvys0t5Ak= =NCfd -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging acpi,pc,pci,virtio,memory bug fixes This collects several small fixes from all over the place. Additionally, Marcel's changes make acpi unit tests more robust. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Sun 09 Mar 2014 19:14:57 GMT using RSA key ID D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67 # Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469 * remotes/mst/tags/for_upstream: qemu: x86: ignore ioapic polarity pckbd: return 'keyboard enabled' on read input port command pam: partly fix write-only mode acpi-test: issue errors instead of warnings when possible acpi-test: retain both asl and aml files on failure MAINTAINERS: drop an out of date address Add a 'name' parameter to qemu_thread_create Add 'debug-threads' suboption to --name Rework --name to use QemuOpts PCIE: fix regression with coldplugged multifunction device memory_region_present: return false if address is not found in child MemoryRegion virtio-net: remove function calls from assert acpi-test-data: update expected files acpi-build: append description for non-hotplug Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
118760dfc9
33 changed files with 656 additions and 336 deletions
61
vl.c
61
vl.c
|
@ -479,6 +479,33 @@ static QemuOptsList qemu_msg_opts = {
|
|||
},
|
||||
};
|
||||
|
||||
static QemuOptsList qemu_name_opts = {
|
||||
.name = "name",
|
||||
.implied_opt_name = "guest",
|
||||
.merge_lists = true,
|
||||
.head = QTAILQ_HEAD_INITIALIZER(qemu_name_opts.head),
|
||||
.desc = {
|
||||
{
|
||||
.name = "guest",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Sets the name of the guest.\n"
|
||||
"This name will be displayed in the SDL window caption.\n"
|
||||
"The name will also be used for the VNC server",
|
||||
}, {
|
||||
.name = "process",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Sets the name of the QEMU process, as shown in top etc",
|
||||
}, {
|
||||
.name = "debug-threads",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
.help = "When enabled, name the individual threads; defaults off.\n"
|
||||
"NOTE: The thread names are for debugging and not a\n"
|
||||
"stable API.",
|
||||
},
|
||||
{ /* End of list */ }
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Get machine options
|
||||
*
|
||||
|
@ -929,6 +956,21 @@ static int parse_sandbox(QemuOpts *opts, void *opaque)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void parse_name(QemuOpts *opts)
|
||||
{
|
||||
const char *proc_name;
|
||||
|
||||
if (qemu_opt_get(opts, "debug-threads")) {
|
||||
qemu_thread_naming(qemu_opt_get_bool(opts, "debug-threads", false));
|
||||
}
|
||||
qemu_name = qemu_opt_get(opts, "guest");
|
||||
|
||||
proc_name = qemu_opt_get(opts, "process");
|
||||
if (proc_name) {
|
||||
os_set_proc_name(proc_name);
|
||||
}
|
||||
}
|
||||
|
||||
bool usb_enabled(bool default_usb)
|
||||
{
|
||||
return qemu_opt_get_bool(qemu_get_machine_opts(), "usb", default_usb);
|
||||
|
@ -2889,6 +2931,7 @@ int main(int argc, char **argv, char **envp)
|
|||
qemu_add_opts(&qemu_tpmdev_opts);
|
||||
qemu_add_opts(&qemu_realtime_opts);
|
||||
qemu_add_opts(&qemu_msg_opts);
|
||||
qemu_add_opts(&qemu_name_opts);
|
||||
|
||||
runstate_init();
|
||||
|
||||
|
@ -3634,19 +3677,11 @@ int main(int argc, char **argv, char **envp)
|
|||
"is no longer supported.\n");
|
||||
break;
|
||||
case QEMU_OPTION_name:
|
||||
qemu_name = g_strdup(optarg);
|
||||
{
|
||||
char *p = strchr(qemu_name, ',');
|
||||
if (p != NULL) {
|
||||
*p++ = 0;
|
||||
if (strncmp(p, "process=", 8)) {
|
||||
fprintf(stderr, "Unknown subargument %s to -name\n", p);
|
||||
exit(1);
|
||||
}
|
||||
p += 8;
|
||||
os_set_proc_name(p);
|
||||
}
|
||||
}
|
||||
opts = qemu_opts_parse(qemu_find_opts("name"), optarg, 1);
|
||||
if (!opts) {
|
||||
exit(1);
|
||||
}
|
||||
parse_name(opts);
|
||||
break;
|
||||
case QEMU_OPTION_prom_env:
|
||||
if (nb_prom_envs >= MAX_PROM_ENVS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue