Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
(In reply to Xu Han from comment #0)
> Description of problem:
> Watchdog action 'inject-nmi' takes no effect. I checked the source codes and
> the build log of qemu-kvm-rhev-2.6.0-1.el7.x86_64 and found that macro
> 'TARGET_I386' is missing.
>
You are right, the code inside of the ifdefs isn't getting compiled and will throw an error even if you try to. I will post patches shortly. Thanks for debugging!
Comment 3Miroslav Rezanina
2016-06-06 10:50:52 UTC
Verified this issue with qemu-kvm-rhev-2.6.0-22.el7.x86_64.
Steps: same as comment 0.
Results:
Guest could receive the NMI.
[ 306.155563] i6300esb: Unexpected close, not stopping watchdog!
[ 311.158013] Uhhuh. NMI received for unknown reason 21 on CPU 0.
[ 311.158013] Do you have a strange power saving mode enabled?
[ 311.158013] Dazed and confused, but trying to continue
So, this bug has been fixed.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2673.html
Description of problem: Watchdog action 'inject-nmi' takes no effect. I checked the source codes and the build log of qemu-kvm-rhev-2.6.0-1.el7.x86_64 and found that macro 'TARGET_I386' is missing. cc -I/builddir/build/BUILD/qemu-2.6.0/tcg -I/builddir/build/BUILD/qemu-2.6.0/tcg/i386 -I/builddir/build/BUILD/qemu-2.6.0/linux-headers -I/builddir/build/BUILD/qemu-2.6.0/linux-headers -I. -I/builddir/build/BUILD/qemu-2.6.0 -I/builddir/build/BUILD/qemu-2.6.0/include -Ihw/core -Ihw/core -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -O2 -g -pipe -Wall -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIE -DPIE -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng15 -I/usr/include/spice-server -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/spice-1 -I/usr/include/cacard -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/libusb-1.0 -I/builddir/build/BUILD/qemu-2.6.0/tests -MMD -MP -MT hw/core/nmi.o -MF hw/core/nmi.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -c -o hw/core/nmi.o hw/core/nmi.c hw/core/nmi.c: void inject_nmi(void) { #if defined(TARGET_I386) CPUState *cs; CPU_FOREACH(cs) { X86CPU *cpu = X86_CPU(cs); if (!cpu->apic_state) { cpu_interrupt(cs, CPU_INTERRUPT_NMI); } else { apic_deliver_nmi(cpu->apic_state); } } #else nmi_monitor_handle(0, NULL); #endif } Version-Release number of selected component (if applicable): qemu-kvm-rhev-2.6.0-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Launch VM with parameter '-devcie i6300esb,id=wdt0 -watchdog-action inject-nmi' 2. On guest, active the watchdog interface and wait it expires # python -c "open('/dev/watchdog').close()" Actual results: Guest had not received the NMI. Expected results: Guest could receive the NMI. [ 854.678150] Uhhuh. NMI received for unknown reason 20 on CPU 0. [ 854.678424] Do you have a strange power saving mode enabled? [ 854.678679] Dazed and confused, but trying to continue