Accepting request 574324 from home:jfehlig:branches:Virtualization
- guest agent: change service file to a template so it can be used by Xen as well. Adjust udev rule accordingly. FATE#324963 - guest agent: change service file to a template so it can be used by Xen as well. Adjust udev rule accordingly. FATE#324963 OBS-URL: https://build.opensuse.org/request/show/574324 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=389
This commit is contained in:
parent
c696816dcc
commit
d368a28510
@ -97,13 +97,13 @@ index b3fdd0827d..d64ad081b7 100644
|
||||
+ error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",
|
||||
+ "integer");
|
||||
+ return;
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ parse_str(siv, name, true, errp);
|
||||
+
|
||||
+ if (!siv->ranges) {
|
||||
+ goto error;
|
||||
}
|
||||
+ }
|
||||
+
|
||||
+ if (!siv->cur_range) {
|
||||
+ Range *r;
|
||||
|
@ -17,18 +17,18 @@ diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-visitor
|
||||
index 4f9c36bef1..470f58e0ab 100644
|
||||
--- a/tests/test-string-input-visitor.c
|
||||
+++ b/tests/test-string-input-visitor.c
|
||||
@@ -55,6 +55,14 @@ static void test_visitor_in_int(TestInputVisitorData *data,
|
||||
|
||||
v = visitor_input_test_init(data, "-42");
|
||||
|
||||
+ visit_type_int(v, NULL, &res, &err);
|
||||
+ g_assert(!err);
|
||||
+ g_assert_cmpint(res, ==, value);
|
||||
@@ -58,6 +58,14 @@ static void test_visitor_in_int(TestInputVisitorData *data,
|
||||
visit_type_int(v, NULL, &res, &err);
|
||||
g_assert(!err);
|
||||
g_assert_cmpint(res, ==, value);
|
||||
+ visitor_input_teardown(data, unused);
|
||||
+
|
||||
+ value = INT64_MAX;
|
||||
+ v = visitor_input_test_init(data, g_strdup_printf("%" PRId64, value));
|
||||
+
|
||||
visit_type_int(v, NULL, &res, &err);
|
||||
g_assert(!err);
|
||||
g_assert_cmpint(res, ==, value);
|
||||
+ visit_type_int(v, NULL, &res, &err);
|
||||
+ g_assert(!err);
|
||||
+ g_assert_cmpint(res, ==, value);
|
||||
|
||||
v = visitor_input_test_init(data, "not an int");
|
||||
|
||||
|
@ -1 +1 @@
|
||||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="qemu-ga.service"
|
||||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="qemu-ga@virtio\x2dports-org.qemu.guest_agent.0.service"
|
||||
|
@ -1,11 +1,11 @@
|
||||
[Unit]
|
||||
Description=QEMU Guest Agent
|
||||
Documentation=http://wiki.qemu.org/Features/GuestAgent
|
||||
BindsTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device
|
||||
After=dev-virtio\x2dports-org.qemu.guest_agent.0.device
|
||||
BindsTo=dev-%i.device
|
||||
After=dev-%i.device
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=-/usr/bin/qemu-ga
|
||||
ExecStart=-/usr/bin/qemu-ga -p /dev/%I
|
||||
Restart=always
|
||||
RestartSec=0
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 8 00:12:14 UTC 2018 - jfehlig@suse.com
|
||||
|
||||
- guest agent: change service file to a template so it can be
|
||||
used by Xen as well. Adjust udev rule accordingly.
|
||||
FATE#324963
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 21:51:17 UTC 2018 - brogers@suse.com
|
||||
|
||||
|
@ -119,7 +119,7 @@ Source3: kvm_stat
|
||||
Source4: kvm_stat.1.gz
|
||||
Source5: qemu-kvm.1.gz
|
||||
Source6: ksm.service
|
||||
Source7: qemu-ga.service
|
||||
Source7: qemu-ga@.service
|
||||
Source8: 80-qemu-ga.rules
|
||||
Source9: qemu-supportconfig
|
||||
Source10: kvm.conf
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 8 00:12:14 UTC 2018 - jfehlig@suse.com
|
||||
|
||||
- guest agent: change service file to a template so it can be
|
||||
used by Xen as well. Adjust udev rule accordingly.
|
||||
FATE#324963
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 21:51:17 UTC 2018 - brogers@suse.com
|
||||
|
||||
|
@ -119,7 +119,7 @@ Source3: kvm_stat
|
||||
Source4: kvm_stat.1.gz
|
||||
Source5: qemu-kvm.1.gz
|
||||
Source6: ksm.service
|
||||
Source7: qemu-ga.service
|
||||
Source7: qemu-ga@.service
|
||||
Source8: 80-qemu-ga.rules
|
||||
Source9: qemu-supportconfig
|
||||
Source10: kvm.conf
|
||||
|
@ -119,7 +119,7 @@ Source3: kvm_stat
|
||||
Source4: kvm_stat.1.gz
|
||||
Source5: qemu-kvm.1.gz
|
||||
Source6: ksm.service
|
||||
Source7: qemu-ga.service
|
||||
Source7: qemu-ga@.service
|
||||
Source8: 80-qemu-ga.rules
|
||||
Source9: qemu-supportconfig
|
||||
Source10: kvm.conf
|
||||
|
Loading…
Reference in New Issue
Block a user