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.

Bug 606733

Summary: Unable to set the driftfix parameter
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Berrangé <berrange>
Component: qemu-kvmAssignee: Amit Shah <amit.shah>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: llim, mkenneth, quintela, shuang, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.82.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:25:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2010-06-22 11:02:51 UTC
Description of problem:
# virsh start demo
error: Failed to start domain demo
error: internal error Process exited while reading console log output:
qemu-kvm: -rtc base=localtime,driftfix=slew: Invalid parameter 'driftfix'


This appears to be a code bug. The driftfix parameter is specified in qemu-config.c:

QemuOptsList qemu_rtc_opts = {
    .name = "rtc",
    .head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
    .desc = {
        {
            .name = "base",
            .type = QEMU_OPT_STRING,
        },{
            .name = "clock",
            .type = QEMU_OPT_STRING,
#ifdef TARGET_I386
        },{
            .name = "driftfix",
            .type = QEMU_OPT_STRING,
#endif
        },
        { /* end if list */ }
    },
};


This file is target-independent and not allowed to include config-target.h. Thus TARGET_I386 will never be defined here. The simplest fix is to just remove this conditional wrapper.


Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.77.el6

How reproducible:
Always

Steps to Reproduce:
1. Add the following to a libvirt guest

  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
  </clock>


2. Boot the guest
3.
  
Actual results:
qemu-kvm: -rtc base=localtime,driftfix=slew: Invalid parameter 'driftfix'

Expected results:
Boots successfully

Additional info:

Comment 1 RHEL Program Management 2010-06-22 11:33:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 6 Suqin Huang 2010-07-07 02:19:40 UTC
cmd:

/usr/libexec/qemu-kvm -name 'vm1' -monitor stdio \
-drive file=/root/Auto/images/RHEL-Server-6.0-32-virtio.qcow2,if=virtio,cache=none,boot=on,aio=native \
-net nic,vlan=0,netdev=FIl9,model=virtio,macaddr='02:6F:F6:3D:22:8d' \
-netdev tap,id=FIl9,ifname=virtio_0_8000,script=/root/Auto/autotest/qemu-ifup-switch,downscript=no,vhost=on -m 4096 -smp 2 -vnc :0  -usbdevice tablet -rtc-td-hack -cpu qemu64,+sse2 -no-kvm-pit-reinjection \
-rtc base=localtime,driftfix=slew


reproduce in qemu-kvm-0.12.1.2-2.77.el6:
qemu-kvm: -rtc base=localtime,driftfix=slew: Invalid parameter 'driftfix'

fixed in qemu-kvm-0.12.1.2-2.90.el6 included in
compose RHEL6.0-20100701.3

Comment 7 releng-rhel@redhat.com 2010-11-10 21:25:36 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.