Skip to contentSkip to conversation

dhcp:"dhclient -x eth0" action is not correct.

PATCH Superseded Jiping Ma 2 participants 3 messages May 23, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jiping Ma

author
#0 lore raw

PATCH 1/1 dhcp:"dhclient -x eth0" action is not correct.

The action of "dhclient -x eth0" and "dhclient -r eth0" is same when enable ENABLE_GENTLE_SHUTDOWN. Disable ENABLE_GENTLE_SHUTDOWN that will use the default signal hander.

---
 meta/recipes-connectivity/dhcp/dhcp_4.4.1.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-connectivity/dhcp/dhcp_4.4.1.bb +0 -1
index 19524cb3c9..275961a603 100644
@@ -5,7 +5,6 @@ SRC_URI += "file://0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.pat
             file://0003-link-with-lcrypto.patch \
             file://0004-Fix-out-of-tree-builds.patch \
             file://0005-dhcp-client-fix-invoke-dhclient-script-failed-on-Rea.patch \
-            file://0006-site.h-enable-gentle-shutdown.patch \
             file://0007-Add-configure-argument-to-make-the-libxml2-dependenc.patch \
             file://0009-remove-dhclient-script-bash-dependency.patch \
             file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH 1/1 qemu: IRQ Stats not shown with virsh command

Issue: LIN10-5872

Add IRQ statistic code in kvm/i8259.c.

(LOCAL REV: NOT UPSTREAM) -- oe-core already included it.

---
 ...1-kvm-i8259-support-info-pic-and-info-irq.patch |  76 +++++++++
 .../0002-i8259-use-DEBUG_IRQ_COUNT-always.patch    |  89 +++++++++++
 ...59-generalize-statistics-into-common-code.patch | 177 +++++++++++++++++++++
 meta/recipes-devtools/qemu/qemu_2.10.0.bb          |   3 +
 4 files changed, 345 insertions(+)
 create mode 100644 meta/recipes-devtools/qemu/qemu/0001-kvm-i8259-support-info-pic-and-info-irq.patch
 create mode 100644 meta/recipes-devtools/qemu/qemu/0002-i8259-use-DEBUG_IRQ_COUNT-always.patch
 create mode 100644 meta/recipes-devtools/qemu/qemu/0003-i8259-generalize-statistics-into-common-code.patch
meta/recipes-devtools/qemu/qemu/0001-kvm-i8259-support-info-pic-and-info-irq.patch new file +76 -0
new file mode 100644
index 0000000000..1640ac403d
@@ -0,0 +1,76 @@
+From ba55afb7804d9d77234440b4cf00529b052e8b87 Mon Sep 17 00:00:00 2001
+From: Peter Xu <[email protected]>
+Date: Sun, 10 Dec 2017 14:38:18 +0800
+Subject: [PATCH 1/3] kvm-i8259: support "info pic" and "info irq"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Let's leverage the i8259 common code for kvm-i8259 too.
+
+I think it's still possible that stats can lost when i8259 is in kernel
+and meanwhile when irqfd is used, e.g., by vfio or vhost devices.
+However that should be rare IMHO since they should be using MSIs mostly
+if they really want performance (that's why people use vhost and device
+assignment), and no old INTx should be used.  As long as the INTx users
+are emulated in QEMU the stats will be correct.
+
+For "info pic", it should be always accurate since we fetch kvm regs
+before dump.
+
+More importantly, it's just too simple to do this now - it's only 10+
+LOC to gain this feature.
+
+Upstream-Status: Backport
+
+Signed-off-by: Peter Xu <[email protected]>
+Message-Id: <[email protected]>
+Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
+Signed-off-by: Paolo Bonzini <[email protected]>
+Signed-off-by: Jiping Ma <[email protected]>
+---
+ hw/i386/kvm/i8259.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c
+index 11d1b726..57abe091 100644
+--- a/hw/i386/kvm/i8259.c
++++ b/hw/i386/kvm/i8259.c
+@@ -111,6 +111,7 @@ static void kvm_pic_set_irq(void *opaque, int irq, int level)
+ {
+     int delivered;
+ 
++    pic_stat_update_irq(irq, level);
+     delivered = kvm_set_irq(kvm_state, irq, level);
+     apic_report_irq_delivered(delivered);
+ }
+@@ -139,12 +140,15 @@ static void kvm_i8259_class_init(ObjectClass *klass, void *data)
+     KVMPICClass *kpc = KVM_PIC_CLASS(klass);
+     PICCommonClass *k = PIC_COMMON_CLASS(klass);
+     DeviceClass *dc = DEVICE_CLASS(klass);
++    InterruptStatsProviderClass *ic = INTERRUPT_STATS_PROVIDER_CLASS(klass);
+ 
+     dc->reset     = kvm_pic_reset;
+     kpc->parent_realize = dc->realize;
+     dc->realize   = kvm_pic_realize;
+     k->pre_save   = kvm_pic_get;
+     k->post_load  = kvm_pic_put;
++    ic->get_statistics = pic_get_statistics;
++    ic->print_info = pic_print_info;
+ }
+ 
+ static const TypeInfo kvm_i8259_info = {
+@@ -153,6 +157,10 @@ static const TypeInfo kvm_i8259_info = {
+     .instance_size = sizeof(PICCommonState),
+     .class_init = kvm_i8259_class_init,
+     .class_size = sizeof(KVMPICClass),
++    .interfaces = (InterfaceInfo[]) {
++        { TYPE_INTERRUPT_STATS_PROVIDER },
++        { }
++    },
+ };
+ 
+ static void kvm_pic_register_types(void)
+-- 
+2.18.1
+
meta/recipes-devtools/qemu/qemu/0002-i8259-use-DEBUG_IRQ_COUNT-always.patch new file +89 -0

89 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/0003-i8259-generalize-statistics-into-common-code.patch new file +177 -0

177 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu_2.10.0.bb +3 -0
index 04c575f842..7e7cd3b76b 100644
@@ -66,6 +66,9 @@ SRC_URI = "http://wiki.qemu-project.org/download/${BP}.tar.bz2 \
            file://CVE-2018-19364-2.patch \
            file://CVE-2018-18849.patch \
            file://CVE-2018-19489.patch \
+           file://0001-kvm-i8259-support-info-pic-and-info-irq.patch \
+           file://0002-i8259-use-DEBUG_IRQ_COUNT-always.patch \
+           file://0003-i8259-generalize-statistics-into-common-code.patch \
            "
 
 UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+\..*)\.tar"
Signature · 1 line
2.11.0
#2 lore raw

Re: [PATCH] qemu: IRQ Stats not shown with virsh command

Quoted 5 lines · Jiping Ma

Issue: LIN10-5872

Add IRQ statistic code in kvm/i8259.c.

(LOCAL REV: NOT UPSTREAM) -- oe-core already included it.

Can you remove all these Wind River-specific lines and replace them with a better commit message?

Ross