KVM Archive on lore.kernel.org
 help / color / Atom feed
* [kvm:queue 104/105] vmx.c:undefined reference to `__udivdi3'
@ 2019-06-17 20:20 kbuild test robot
  2019-06-18 10:56 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-06-17 20:20 UTC (permalink / raw)
  To: Sean Christopherson
  Cc: kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei, Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   5253b5b578e40c3a10922579b38d1a53112324bd
commit: ce70de9a05de4510435f554da0cb2fb3321ba0fc [104/105] KVM: VMX: Leave preemption timer running when it's disabled
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout ce70de9a05de4510435f554da0cb2fb3321ba0fc
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: arch/x86/kvm/vmx/vmx.o: in function `hardware_setup':
>> vmx.c:(.init.text+0xe90): undefined reference to `__udivdi3'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 68173 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [kvm:queue 104/105] vmx.c:undefined reference to `__udivdi3'
  2019-06-17 20:20 [kvm:queue 104/105] vmx.c:undefined reference to `__udivdi3' kbuild test robot
@ 2019-06-18 10:56 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2019-06-18 10:56 UTC (permalink / raw)
  To: kbuild test robot, Sean Christopherson
  Cc: kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei

On 17/06/19 22:20, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
> head:   5253b5b578e40c3a10922579b38d1a53112324bd
> commit: ce70de9a05de4510435f554da0cb2fb3321ba0fc [104/105] KVM: VMX: Leave preemption timer running when it's disabled
> config: i386-allyesconfig (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         git checkout ce70de9a05de4510435f554da0cb2fb3321ba0fc
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    ld: arch/x86/kvm/vmx/vmx.o: in function `hardware_setup':
>>> vmx.c:(.init.text+0xe90): undefined reference to `__udivdi3'

Fixed by rewriting

	if ((0xffffffffu / use_timer_freq) < 10)
		enable_preemption_timer = false;

to

	if (use_timer_freq > 0xffffffffu / 10)
		enable_preemption_timer = false;

(finally doing inequations in high school paid off).

Paolo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 20:20 [kvm:queue 104/105] vmx.c:undefined reference to `__udivdi3' kbuild test robot
2019-06-18 10:56 ` Paolo Bonzini

KVM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kvm/0 kvm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kvm kvm/ https://lore.kernel.org/kvm \
		kvm@vger.kernel.org kvm@archiver.kernel.org
	public-inbox-index kvm


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.kvm


AGPL code for this site: git clone https://public-inbox.org/ public-inbox