Re: QEMU CPU cores not showing up

2013-11-15 Thread InterNetX - Robert Garrett
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Then as Stated you are already vulnerable to much more than interrupt
remapping will fix. So dont worry about it.

On 11/14/2013 06:00 PM, Giancarlo Razzolini wrote:
 Em 14-11-2013 14:18, InterNetX - Robert Garrett escreveu:
 The issue you outlined below is not an openbsd issue, this is a
 kvm issue. and depends greatly on the version of linux/whatever
 you are using. The interrupt remapping you are talking about is
 either a bios issue (likely) or an issue with the hypervisor.
 
 it sounds like to me you are using or attempting to use SRIOV.
 
 all of the issues that you mentioned are still relevent even
 with safe interrupts, as well as several you did not mention.
 Robert,
 
 I do believe it is a specific issue with OpenBSD, because using
 the same hypervisor I can do pci passthrough, using the same
 versions, hardware, etc, to other operating systems using interrupt
 remapping.
 
 I do have indeed SRIOV enabled on my bare metal bios. The thing is 
 that kvm specifically warns me that the guest do not support
 interrupt remapping, when using openbsd only. As I told before, it
 is not a problem for me right now, since I enable the unsafe
 interrupt assignment and the OS works normally.
 
 Also, David, thanks for pointing out the patch, because since I 
 applied it, I did not experienced anymore lockups (so far). I am
 betting it was indeed the problem.
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJShdk4AAoJEMrvovfl62c8DVEIALQmLbVLlnEsayXgpvCNiO2g
gWF0+L4haMA7Rhf7FvRqOpXxCcZVhxk5ocEvSHLnyG1iYfh3tlnq1ts8rk9dfSHT
DP1QA0ReXvVJKW2r8UcLVfI62H6gA93TiFZWLzFioO6NZExKlfe3DCWDg3scBqg3
dZFE7fcQW5iUjOdKJzw79DBTN1FlQUxeZ5EAGXN19XZAezbHP08KmmyAkil7jvqf
DRFVRT7xnh0Vqa5H6Iz4KrQcasIPiLnt6ggxRzCxXL2EKu8K5Htwc9/LD4Jynz6y
YVPKEPrL0lJ03ocb+U47vSynTfFWjDbOdKeIikqhUFDccfwTWUtefSVGmTzzdgQ=
=tyuk
-END PGP SIGNATURE-



Re: QEMU CPU cores not showing up

2013-11-15 Thread Duncan Patton a Campbell
On Thu, 14 Nov 2013 09:51:04 -0700
Theo de Raadt dera...@cvs.openbsd.org wrote:

 Then we'll be not be hearing from you again, I assume.
 
  I am not putting up with this bulling shit.  :)
  
  --
  Bruno Delbono
  | Cognitive Researcher 

Doubtless.

Dhu

  - Human Behavioural Project
  | Real Sociedad Espa__ola De Antropolog__a
  | ___: +1 855 253 5436 ___: +1 424 354 4700
 


-- 
Ne obliviscaris, vix ea nostra voco.



Re: QEMU CPU cores not showing up

2013-11-15 Thread Giancarlo Razzolini
Em 15-11-2013 06:20, InterNetX - Robert Garrett escreveu:
 Then as Stated you are already vulnerable to much more than interrupt
 remapping will fix. So dont worry about it.

Well, I said I have it enabled on my BIOS. Me having a sriov enabled
kernel and a sriov capable NIC is another history. I'm justing making
simple pci passthrough. Anyway, I'm not worrying much because it's
OpenBSD. But it's kind of a bummer not being able to have more cores on
it. Perhaps when I finish migrating the servers I can look into it.

Cheers,
-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: QEMU CPU cores not showing up

2013-11-14 Thread Giancarlo Razzolini
Em 13-11-2013 22:40, Jeff Fuhrman escreveu:
 I'm the tech Bruno has been working with regarding this. QEMU version is 1.5 
 and the relevant section of the KVM Config file is  
 vcpu4/vcpucputopology sockets='1' cores='4' threads='1'//cpu. 
 We've tried it with 2 sockets, with 4 sockets, with 2 threads, 4 threads, and 
 so on. ACPI and APIC are enabled for the KVM Container. 

 Jeff Fuhrman
 Level 2 Technician - BlueVM
I have the same issue using the same qemu version. Do you guys also
experience random lockups? I've seem sometimes the OpenBSD VM sshd will
simply stop answering. Also if I try to login directly through the VM's
console, when I insert the username it will not prompt me for a
password. The strangest thing is, the machine still answer ping packets.
I could not debug it yet, since it happens randomly. I have to force a
shutdown to be able to access the machine again.

To add to the strange thing, I have another bare metal machine, with a
different hardware, but using the same qemu version, and I had never
experienced any lockups. But it also will not show more cores on OpenBSD.

Cheers,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: QEMU CPU cores not showing up

2013-11-14 Thread David Coppa
On Thu, Nov 14, 2013 at 2:33 PM, Giancarlo Razzolini
grazzol...@gmail.com wrote:
 Em 13-11-2013 22:40, Jeff Fuhrman escreveu:
 I'm the tech Bruno has been working with regarding this. QEMU version is 1.5 
 and the relevant section of the KVM Config file is  
 vcpu4/vcpucputopology sockets='1' cores='4' threads='1'//cpu. 
 We've tried it with 2 sockets, with 4 sockets, with 2 threads, 4 threads, 
 and so on. ACPI and APIC are enabled for the KVM Container.

 Jeff Fuhrman
 Level 2 Technician - BlueVM
 I have the same issue using the same qemu version. Do you guys also
 experience random lockups? I've seem sometimes the OpenBSD VM sshd will
 simply stop answering. Also if I try to login directly through the VM's
 console, when I insert the username it will not prompt me for a
 password. The strangest thing is, the machine still answer ping packets.
 I could not debug it yet, since it happens randomly. I have to force a
 shutdown to be able to access the machine again.

Have you applied the patch for the errata below?

for 5.4:

http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/003_vnode.patch

or for 5.3:

http://ftp.openbsd.org/pub/OpenBSD/patches/5.3/common/010_vnode.patch



Re: QEMU CPU cores not showing up

2013-11-14 Thread Giancarlo Razzolini
Em 14-11-2013 11:43, David Coppa escreveu:
 On Thu, Nov 14, 2013 at 2:33 PM, Giancarlo Razzolini
 grazzol...@gmail.com wrote:
 Em 13-11-2013 22:40, Jeff Fuhrman escreveu:
 I'm the tech Bruno has been working with regarding this. QEMU version is 
 1.5 and the relevant section of the KVM Config file is  
 vcpu4/vcpucputopology sockets='1' cores='4' threads='1'//cpu. 
 We've tried it with 2 sockets, with 4 sockets, with 2 threads, 4 threads, 
 and so on. ACPI and APIC are enabled for the KVM Container.

 Jeff Fuhrman
 Level 2 Technician - BlueVM
 I have the same issue using the same qemu version. Do you guys also
 experience random lockups? I've seem sometimes the OpenBSD VM sshd will
 simply stop answering. Also if I try to login directly through the VM's
 console, when I insert the username it will not prompt me for a
 password. The strangest thing is, the machine still answer ping packets.
 I could not debug it yet, since it happens randomly. I have to force a
 shutdown to be able to access the machine again.
 Have you applied the patch for the errata below?

 for 5.4:

 http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/003_vnode.patch

 or for 5.3:

 http://ftp.openbsd.org/pub/OpenBSD/patches/5.3/common/010_vnode.patch
Not yet David, will look into it. I am moving almost all of my
infrastructure servers to virtualized ones. Even my firewall is
virtualized now. But I am experienced these random lockups now and then.
Will apply the patch and test it again.

I do have another issue with running an OpenBSD guest in which it wont
do interrupt remapping so I have to enable an unsafe behavior on kvm
which allows it to do pci passthrough with unsafe interrupts. There
are some issues using this in which a privileged user in the guest
machine could escalate it's privileges on the host and/or crash it.
Anyway, this isn't a problem for me right now, when I do have some time
I'll look into it.

Thanks,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: QEMU CPU cores not showing up

2013-11-14 Thread InterNetX - Robert Garrett
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The issue you outlined below is not an openbsd issue, this is a kvm
issue. and depends greatly on the version of linux/whatever you are
using. The interrupt remapping you are talking about is either a bios
issue (likely) or an issue with the hypervisor.

it sounds like to me you are using or attempting to use SRIOV.

all of the issues that you mentioned are still relevent even with
safe interrupts, as well as several you did not mention.

RG

On 11/14/2013 03:15 PM, Giancarlo Razzolini wrote:
 Em 14-11-2013 11:43, David Coppa escreveu:
 On Thu, Nov 14, 2013 at 2:33 PM, Giancarlo Razzolini 
 grazzol...@gmail.com wrote:
 Em 13-11-2013 22:40, Jeff Fuhrman escreveu:
 I'm the tech Bruno has been working with regarding this. QEMU
 version is 1.5 and the relevant section of the KVM Config
 file is  vcpu4/vcpucputopology sockets='1' cores='4'
 threads='1'//cpu. We've tried it with 2 sockets, with 4
 sockets, with 2 threads, 4 threads, and so on. ACPI and APIC
 are enabled for the KVM Container.
 
 Jeff Fuhrman Level 2 Technician - BlueVM
 I have the same issue using the same qemu version. Do you guys
 also experience random lockups? I've seem sometimes the OpenBSD
 VM sshd will simply stop answering. Also if I try to login
 directly through the VM's console, when I insert the username
 it will not prompt me for a password. The strangest thing is,
 the machine still answer ping packets. I could not debug it
 yet, since it happens randomly. I have to force a shutdown to
 be able to access the machine again.
 Have you applied the patch for the errata below?
 
 for 5.4:
 
 http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/003_vnode.patch


 
or for 5.3:
 
 http://ftp.openbsd.org/pub/OpenBSD/patches/5.3/common/010_vnode.patch

 
Not yet David, will look into it. I am moving almost all of my
 infrastructure servers to virtualized ones. Even my firewall is 
 virtualized now. But I am experienced these random lockups now and
 then. Will apply the patch and test it again.
 
 I do have another issue with running an OpenBSD guest in which it
 wont do interrupt remapping so I have to enable an unsafe behavior
 on kvm which allows it to do pci passthrough with unsafe
 interrupts. There are some issues using this in which a privileged
 user in the guest machine could escalate it's privileges on the
 host and/or crash it. Anyway, this isn't a problem for me right
 now, when I do have some time I'll look into it.
 
 Thanks,
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJShPfBAAoJEMrvovfl62c88fcIAIhs4nW2+Tv/TMlg/+ePvPpD
o5twuabaHfim9iYMqyAHQEztR8Nm4eFWilrFE3AZP2zvoPHLvxWuApZe1rr03FIy
CUnPlzhde+e38ggC0r5OQkV3tURpEWr3Uk7Yjzr2hxg47/syX15XYSEERtaSAaOY
3vv8Kt3IFXVZFHg+EM9dQCMMrNuXwxp2eg7Gej7S2Gv6mO7yWyniM7uhLTrqGwtP
AFx36o6XSMzxqq4ooN8/seMMlnP075o45b8rhKHRRX4BgZ7eRI5z+ZglVJF9wSo7
GNPQZGWqwpfACDREOY/U0rmk4iG+RwBplKhprCZgnsvoQAJfdbFcOPVnzUDbpYQ=
=lvPc
-END PGP SIGNATURE-



Re: QEMU CPU cores not showing up

2013-11-14 Thread Bruno Delbono
Theo,

I wonder when will you stop being a condescending prick? I understand you and 
many of the actually nicer devs here on OpenBSD, have contributed  towards 
computer security. And yet you have been in public and private, called a bully 
numerous times now.  I have a faint recollection of meeting you at CanSec West 
in Vancouver a decade ago and oddly this arrogance remains. At that time I was 
younger and OpenBSD was the shit! Sigh...youth

Remember when you change IPv6 in OpenBSD also about a decade ago? I had to work 
with Philip Hazel on Exim to work properly with the new way of thinking that 
was your way. Or the time when x2 remote root exploit was floating on the 
internet (even before it went wild)? With IPv6, a decade later neither has the 
adoption increased as predicted nor has those security problem you claimed 
affected the other OS's to show your way was better. And I remember your 
reluctance to deal with x2...or the time you just pulled ipfilter until pf 
saved your ass..

I mean is your head that up your ass that you think being an incredibly idiotic 
bully with an OS that barely functions properly to begin with, helps? Quite 
frankly, I am just annoyed now that I am spending time trying to figure out why 
this one-man OS is so dumb that all other OS's in the world see four cores 
except - oh wait, OpenBSD. I am sure the hundreds and hundreds...no, sorry just 
the hundred of OpenBSD users will benefit.  

PS - Telling me to stick a screw driver in my ear? Ya seriously eff off...I am 
not putting up with this bulling shit.  :)

--
Bruno Delbono
| Cognitive Researcher - Human Behavioural Project
| Real Sociedad Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700


From: Theo de Raadt dera...@cvs.openbsd.org
Sent: Wednesday, November 13, 2013 5:29 PM
To: Bruno Delbono
Cc: misc@openbsd.org; mlar...@azathoth.net
Subject: Re: QEMU CPU cores not showing up

 Sigh, Theo. Seriously I am asking for your help to find out the
 issue as its unique to OpenBSD.


 Stop ranting away on the demerits of disabling apm (and now pci - right! 
 wtf?!).

Then stop justifying your blind following of what you read  on the web.
It looks too much like incompetence.

 Like dude, have you never tried variations of anything except
 default bsd kernel? Why is tinkering (and not even permanent - just
 dmesg outputs) considered such an anathema?

Hey, stick a screw driver into your ear.  Does it help anything?  No.
And that is why it is discouraged.

Don't use boot -c thinking it will fix things for you.

It won't.  That is not what it is for.

boot -c is not a magic tool that solves bugs.  From time to time I
wonder if we should delete it.  It looks like it is only used by people
who read web pages.



Re: QEMU CPU cores not showing up

2013-11-14 Thread Theo de Raadt
Then we'll be not be hearing from you again, I assume.

 I am not putting up with this bulling shit.  :)
 
 --
 Bruno Delbono
 | Cognitive Researcher - Human Behavioural Project
 | Real Sociedad Española De Antropología
 | ☎: +1 855 253 5436 ☎: +1 424 354 4700



Re: QEMU CPU cores not showing up

2013-11-14 Thread Giancarlo Razzolini
Em 14-11-2013 14:18, InterNetX - Robert Garrett escreveu:
 The issue you outlined below is not an openbsd issue, this is a kvm
 issue. and depends greatly on the version of linux/whatever you are
 using. The interrupt remapping you are talking about is either a bios
 issue (likely) or an issue with the hypervisor.

 it sounds like to me you are using or attempting to use SRIOV.

 all of the issues that you mentioned are still relevent even with
 safe interrupts, as well as several you did not mention.
Robert,

I do believe it is a specific issue with OpenBSD, because using the
same hypervisor I can do pci passthrough, using the same versions,
hardware, etc, to other operating systems using interrupt remapping.

I do have indeed SRIOV enabled on my bare metal bios. The thing is
that kvm specifically warns me that the guest do not support interrupt
remapping, when using openbsd only. As I told before, it is not a
problem for me right now, since I enable the unsafe interrupt assignment
and the OS works normally.

Also, David, thanks for pointing out the patch, because since I
applied it, I did not experienced anymore lockups (so far). I am betting
it was indeed the problem.

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: QEMU CPU cores not showing up

2013-11-14 Thread openbsd2012
| -Original Message-
| From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On
| Behalf Of Bruno Delbono
| Sent: Thursday, November 14, 2013 10:48 AM
| To: Theo de Raadt
| Cc: misc@openbsd.org; mlar...@azathoth.net
| Subject: Re: QEMU CPU cores not showing up
| 

Useless crying removed...

| PS - Telling me to stick a screw driver in my ear? Ya seriously eff off...I 
am not
| putting up with this bulling shit.  :)

Good, I for one am glad you are leaving and taking your self-entitled attitude 
with you. If you want something fixed that no developer cares about, then shut 
up and code it yourself. Prick, indeed.

-Breeno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Otto Moerbeek
On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:

 Hello,
 
 
 I have a QEMU instance that works perfectly fine at detecting cpu cores on
 NetBSD/FreeBSD/Linux. All except OpenBSD 5.4
 
 
 - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
 snapshot kernel.

Use the GENERIC.MP kernel.

 
 - I have tried disabling apm and acpi* during boot config
 
 
 I am completely lost as to why this may be happening. You can see the NetBSD
 boot 6.1.2 on the same machine here:
 
 
 http://pastebin.com/FJeiRp9t
 
 
 You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* - I
 tried both) here:
 
 
 http://pastebin.com/v9XWv4XY
 
 
 I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM provider.
 
 
 Can anyone guide me on what I should do or try next? Is it a QEMU issue with
 the Cloud Services Provider?
 
 
 Thanks,
 
 
 -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Bruno Delbono
Hi Otto,

http://pastebin.com/zfkEUxX8

This is generic.mp with flags of apm and acpi disable 

http://pastebin.com/PEjCr2vY

Generic.MP boot.

I am not sure what is wrong and why this works with all the other OS's...


--

Bruno Delbono
| Cognitive Researcher - Human Behavioural Project
| Real Sociedad Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700


From: Otto Moerbeek o...@drijf.net
Sent: Wednesday, November 13, 2013 3:11 PM
To: Bruno Delbono
Cc: misc@openbsd.org
Subject: Re: QEMU CPU cores not showing up

On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:

 Hello,


 I have a QEMU instance that works perfectly fine at detecting cpu cores on
 NetBSD/FreeBSD/Linux. All except OpenBSD 5.4


 - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
 snapshot kernel.

Use the GENERIC.MP kernel.


 - I have tried disabling apm and acpi* during boot config


 I am completely lost as to why this may be happening. You can see the NetBSD
 boot 6.1.2 on the same machine here:


 http://pastebin.com/FJeiRp9t


 You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* - I
 tried both) here:


 http://pastebin.com/v9XWv4XY


 I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM provider.


 Can anyone guide me on what I should do or try next? Is it a QEMU issue with
 the Cloud Services Provider?


 Thanks,


 -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Otto Moerbeek
On Wed, Nov 13, 2013 at 08:26:57PM +, Bruno Delbono wrote:

 Hi Otto,
 
 http://pastebin.com/zfkEUxX8
 
 This is generic.mp with flags of apm and acpi disable 
 
 http://pastebin.com/PEjCr2vY
 
 Generic.MP boot.
 
 I am not sure what is wrong and why this works with all the other OS's...

No clue then. Maybe some kernel hacker can guess.

-Otto
 
 
 --
 
 Bruno Delbono
 | Cognitive Researcher - Human Behavioural Project
 | Real Sociedad Espa??ola De Antropolog??a
 | ???: +1 855 253 5436 ???: +1 424 354 4700
 
 
 From: Otto Moerbeek o...@drijf.net
 Sent: Wednesday, November 13, 2013 3:11 PM
 To: Bruno Delbono
 Cc: misc@openbsd.org
 Subject: Re: QEMU CPU cores not showing up
 
 On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:
 
  Hello,
 
 
  I have a QEMU instance that works perfectly fine at detecting cpu cores on
  NetBSD/FreeBSD/Linux. All except OpenBSD 5.4
 
 
  - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
  snapshot kernel.
 
 Use the GENERIC.MP kernel.
 
 
  - I have tried disabling apm and acpi* during boot config
 
 
  I am completely lost as to why this may be happening. You can see the NetBSD
  boot 6.1.2 on the same machine here:
 
 
  http://pastebin.com/FJeiRp9t
 
 
  You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* - 
  I
  tried both) here:
 
 
  http://pastebin.com/v9XWv4XY
 
 
  I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM 
  provider.
 
 
  Can anyone guide me on what I should do or try next? Is it a QEMU issue with
  the Cloud Services Provider?
 
 
  Thanks,
 
 
  -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Mike Larkin
On Wed, Nov 13, 2013 at 09:44:11PM +0100, Otto Moerbeek wrote:
 On Wed, Nov 13, 2013 at 08:26:57PM +, Bruno Delbono wrote:
 
  Hi Otto,
  
  http://pastebin.com/zfkEUxX8
  
  This is generic.mp with flags of apm and acpi disable 
  

Why would you start trying to disable random devices in the kernel and expect
things to get any better? For the past several years, acpi is needed on most
machines to do anything useful with those machines. That includes VMs.

  http://pastebin.com/PEjCr2vY
  
  Generic.MP boot.
  
  I am not sure what is wrong and why this works with all the other OS's...

From your output, there are no APs being presented to the VM. Talk to your 
cloud
provider.

-ml

 
 No clue then. Maybe some kernel hacker can guess.
 
   -Otto
  
  
  --
  
  Bruno Delbono
  | Cognitive Researcher - Human Behavioural Project
  | Real Sociedad Espa??ola De Antropolog??a
  | ???: +1 855 253 5436 ???: +1 424 354 4700
  
  
  From: Otto Moerbeek o...@drijf.net
  Sent: Wednesday, November 13, 2013 3:11 PM
  To: Bruno Delbono
  Cc: misc@openbsd.org
  Subject: Re: QEMU CPU cores not showing up
  
  On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:
  
   Hello,
  
  
   I have a QEMU instance that works perfectly fine at detecting cpu cores on
   NetBSD/FreeBSD/Linux. All except OpenBSD 5.4
  
  
   - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
   snapshot kernel.
  
  Use the GENERIC.MP kernel.
  
  
   - I have tried disabling apm and acpi* during boot config
  
  
   I am completely lost as to why this may be happening. You can see the 
   NetBSD
   boot 6.1.2 on the same machine here:
  
  
   http://pastebin.com/FJeiRp9t
  
  
   You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* 
   - I
   tried both) here:
  
  
   http://pastebin.com/v9XWv4XY
  
  
   I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM 
   provider.
  
  
   Can anyone guide me on what I should do or try next? Is it a QEMU issue 
   with
   the Cloud Services Provider?
  
  
   Thanks,
  
  
   -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Theo de Raadt
 On Wed, Nov 13, 2013 at 09:44:11PM +0100, Otto Moerbeek wrote:
  On Wed, Nov 13, 2013 at 08:26:57PM +, Bruno Delbono wrote:
  
   Hi Otto,
   
   http://pastebin.com/zfkEUxX8
   
   This is generic.mp with flags of apm and acpi disable 
   
 
 Why would you start trying to disable random devices in the kernel and expect
 things to get any better? For the past several years, acpi is needed on most
 machines to do anything useful with those machines. That includes VMs.

Completely right.

As a general policy, if anyone sends a message which indicates that
they have disabled ACPI, I recommend that everyone ignore them.

ACPI is REQUIRED.  Any advice about disabling it is COMPLETELY AND
UTTERLY FALSE AND MISLEADING.

You will NOT get anywhere by disabling it.  You might as well turn
off cpu0 while at it.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Peter J. Philipp
On 11/13/13 22:13, Mike Larkin wrote:
 On Wed, Nov 13, 2013 at 09:44:11PM +0100, Otto Moerbeek wrote:
 On Wed, Nov 13, 2013 at 08:26:57PM +, Bruno Delbono wrote:

 Hi Otto,

 http://pastebin.com/zfkEUxX8

 This is generic.mp with flags of apm and acpi disable 

 
 Why would you start trying to disable random devices in the kernel and expect
 things to get any better? For the past several years, acpi is needed on most
 machines to do anything useful with those machines. That includes VMs.
 

He took the advice from me on IRC.  I had googled and found a similar
mail from someone who could not see 2 cpu's but only 1, people told that
person to disable apm, but granted the mails were a little dated.

So I was giving the bad advice.  I'll keep the acpi thing in mind for
next time.

Cheers,

-peter

 http://pastebin.com/PEjCr2vY

 Generic.MP boot.

 I am not sure what is wrong and why this works with all the other OS's...
 
From your output, there are no APs being presented to the VM. Talk to your 
cloud
 provider.
 
 -ml
 

 No clue then. Maybe some kernel hacker can guess.

  -Otto


 --

 Bruno Delbono
 | Cognitive Researcher - Human Behavioural Project
 | Real Sociedad Espa??ola De Antropolog??a
 | ???: +1 855 253 5436 ???: +1 424 354 4700

 
 From: Otto Moerbeek o...@drijf.net
 Sent: Wednesday, November 13, 2013 3:11 PM
 To: Bruno Delbono
 Cc: misc@openbsd.org
 Subject: Re: QEMU CPU cores not showing up

 On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:

 Hello,


 I have a QEMU instance that works perfectly fine at detecting cpu cores on
 NetBSD/FreeBSD/Linux. All except OpenBSD 5.4


 - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
 snapshot kernel.

 Use the GENERIC.MP kernel.


 - I have tried disabling apm and acpi* during boot config


 I am completely lost as to why this may be happening. You can see the 
 NetBSD
 boot 6.1.2 on the same machine here:


 http://pastebin.com/FJeiRp9t


 You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* 
 - I
 tried both) here:


 http://pastebin.com/v9XWv4XY


 I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM 
 provider.


 Can anyone guide me on what I should do or try next? Is it a QEMU issue 
 with
 the Cloud Services Provider?


 Thanks,


 -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Jiri B
On Wed, Nov 13, 2013 at 10:29:34PM +0100, Peter J. Philipp wrote:
 He took the advice from me on IRC.  I had googled and found a similar
 mail from someone who could not see 2 cpu's but only 1, people told that
 person to disable apm, but granted the mails were a little dated.
 
 So I was giving the bad advice.  I'll keep the acpi thing in mind for
 next time.
 
 Cheers,
 
 -peter

The issue is how you define cpus as arguments for KVM/qemu.
I have seen same issue with RHEVM (KVM/libvirt with fancy UI).

The reporter should stop using 3rd party web sites for output,
he loses our time, and put as much as info inside the mail.

Show qemu/kvm args!

Ask provider what does he use, which qemu/KVM, which distro...

Try to define 2 sockets, each one core, I bet it will work.

jirib



Re: QEMU CPU cores not showing up

2013-11-13 Thread Bruno Delbono
Mike,

I've asked the provider to look into it. 

As for why completely random disabling apm and acpi...rant by you and 
Theo...please see that they are all output that have been tried including 
booting generic.mp. Its not that it was randomly disabled, it was tested to see 
if there is a difference. I gave dmesg from all variations I tried before 
asking misc@ including GENERIC.MP and snapshot MP. 

I don't get why you and Theo have to go on a rant when the Generic.MP dmesg 
output is a line below... 

Sigh. Anyway, I am asking my provider about this. Is there anything specific 
that OpenBSD may need that none of the other OS's, even Windows Vista that 
works with, needs? Like telling me ask about AP to them is not very helpful. I 
need to know what specifically is missing between the same QEMU instance 
between OpenBSD and any other OS that works fine...  

Bruno Delbono
| Cognitive Researcher - Human Behavioural Project
| Real Sociedad Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700

From: Mike Larkin mlar...@azathoth.net
Sent: Wednesday, November 13, 2013 4:13 PM
To: Bruno Delbono; misc@openbsd.org
Subject: Re: QEMU CPU cores not showing up

On Wed, Nov 13, 2013 at 09:44:11PM +0100, Otto Moerbeek wrote:
 On Wed, Nov 13, 2013 at 08:26:57PM +, Bruno Delbono wrote:

  Hi Otto,
 
  http://pastebin.com/zfkEUxX8
 
  This is generic.mp with flags of apm and acpi disable
 

Why would you start trying to disable random devices in the kernel and expect
things to get any better? For the past several years, acpi is needed on most
machines to do anything useful with those machines. That includes VMs.

  http://pastebin.com/PEjCr2vY
 
  Generic.MP boot.
 
  I am not sure what is wrong and why this works with all the other OS's...

From your output, there are no APs being presented to the VM. Talk to your 
cloud
provider.

-ml


 No clue then. Maybe some kernel hacker can guess.

   -Otto
 
 
  --
 
  Bruno Delbono
  | Cognitive Researcher - Human Behavioural Project
  | Real Sociedad Espa??ola De Antropolog??a
  | ???: +1 855 253 5436 ???: +1 424 354 4700
 
  
  From: Otto Moerbeek o...@drijf.net
  Sent: Wednesday, November 13, 2013 3:11 PM
  To: Bruno Delbono
  Cc: misc@openbsd.org
  Subject: Re: QEMU CPU cores not showing up
 
  On Wed, Nov 13, 2013 at 07:36:58PM +, Bruno Delbono wrote:
 
   Hello,
  
  
   I have a QEMU instance that works perfectly fine at detecting cpu cores on
   NetBSD/FreeBSD/Linux. All except OpenBSD 5.4
  
  
   - I have tried the GENERIC amd64 and i386 bsd.mp kernel and the bsd.mp
   snapshot kernel.
 
  Use the GENERIC.MP kernel.
 
  
   - I have tried disabling apm and acpi* during boot config
  
  
   I am completely lost as to why this may be happening. You can see the 
   NetBSD
   boot 6.1.2 on the same machine here:
  
  
   http://pastebin.com/FJeiRp9t
  
  
   You can see OpenBSD snapshot boot (please ignore disable acpi vs acpiprt* 
   - I
   tried both) here:
  
  
   http://pastebin.com/v9XWv4XY
  
  
   I am using BlueVM (www.BlueVM.comhttp://www.BlueVM.com) as my KVM 
   provider.
  
  
   Can anyone guide me on what I should do or try next? Is it a QEMU issue 
   with
   the Cloud Services Provider?
  
  
   Thanks,
  
  
   -Bruno



Re: QEMU CPU cores not showing up

2013-11-13 Thread Theo de Raadt
 As for why completely random disabling apm and acpi...rant by you and Theo...

Bullshit.

Perhaps the solution you are looking for is:

boot -c
 disable pci*

You never know, it just might work.



We are not ranting.  We're telling you that you don't know what the
hell you are doing, and you are following bad advice.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Theo de Raadt
 Sigh, Theo. Seriously I am asking for your help to find out the
 issue as its unique to OpenBSD.


 Stop ranting away on the demerits of disabling apm (and now pci - right! 
 wtf?!).

Then stop justifying your blind following of what you read  on the web.
It looks too much like incompetence.

 Like dude, have you never tried variations of anything except
 default bsd kernel? Why is tinkering (and not even permanent - just
 dmesg outputs) considered such an anathema?

Hey, stick a screw driver into your ear.  Does it help anything?  No.
And that is why it is discouraged.

Don't use boot -c thinking it will fix things for you. 

It won't.  That is not what it is for.

boot -c is not a magic tool that solves bugs.  From time to time I
wonder if we should delete it.  It looks like it is only used by people
who read web pages.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Bruno Delbono
Theo, fine. Truce. I just got advice from jirib@ to ask my provider about:


Show qemu/kvm args!

Ask provider what does he use, which qemu/KVM, which distro...

Try to define 2 sockets, each one core, I bet it will work.
.

I will report back as soon as they do this. And include full dmesg output in my 
mail rather than outside providers. My apologies about that..

--
Bruno Delbono
| Cognitive Researcher - Human Behavioural Project
| Real Sociedad Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700


From: Theo de Raadt dera...@cvs.openbsd.org
Sent: Wednesday, November 13, 2013 5:29 PM
To: Bruno Delbono
Cc: misc@openbsd.org; mlar...@azathoth.net
Subject: Re: QEMU CPU cores not showing up

 Sigh, Theo. Seriously I am asking for your help to find out the
 issue as its unique to OpenBSD.


 Stop ranting away on the demerits of disabling apm (and now pci - right! 
 wtf?!).

Then stop justifying your blind following of what you read  on the web.
It looks too much like incompetence.

 Like dude, have you never tried variations of anything except
 default bsd kernel? Why is tinkering (and not even permanent - just
 dmesg outputs) considered such an anathema?

Hey, stick a screw driver into your ear.  Does it help anything?  No.
And that is why it is discouraged.

Don't use boot -c thinking it will fix things for you.

It won't.  That is not what it is for.

boot -c is not a magic tool that solves bugs.  From time to time I
wonder if we should delete it.  It looks like it is only used by people
who read web pages.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Bruno Delbono
Sigh, Theo. Seriously I am asking for your help to find out the issue as its 
unique to OpenBSD. Stop ranting away on the demerits of disabling apm (and now 
pci - right! wtf?!).  Like dude, have you never tried variations of anything 
except default bsd kernel? Why is tinkering (and not even permanent - just 
dmesg outputs) considered such an anathema? 

The world didn't collapse by disabling apm and neither did it work. Did I 
mention I tried the GENERIC.MP too? I am sure I did...oh right, a line below...

Look, I am looking for advice from devs like you on why this is happening? 
Please chill, I come in peace for christ sake! Telling me to ask them about AP 
(the only advice so far) is not a good question. 

--
Bruno Delbono
| Cognitive Researcher - Human Behavioural Project
| Real Sociedad Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700


From: Theo de Raadt dera...@cvs.openbsd.org
Sent: Wednesday, November 13, 2013 5:13 PM
To: Bruno Delbono
Cc: misc@openbsd.org; mlar...@azathoth.net
Subject: Re: QEMU CPU cores not showing up

 As for why completely random disabling apm and acpi...rant by you and Theo...

Bullshit.

Perhaps the solution you are looking for is:

boot -c
 disable pci*

You never know, it just might work.



We are not ranting.  We're telling you that you don't know what the
hell you are doing, and you are following bad advice.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Jeff Fuhrman
I'm the tech Bruno has been working with regarding this. QEMU version is 1.5 
and the relevant section of the KVM Config file is  
vcpu4/vcpucputopology sockets='1' cores='4' threads='1'//cpu. We've 
tried it with 2 sockets, with 4 sockets, with 2 threads, 4 threads, and so on. 
ACPI and APIC are enabled for the KVM Container. 

Jeff Fuhrman
Level 2 Technician - BlueVM

-Original Message-
From: Bruno Delbono [mailto:b...@t.gt] 
Sent: Wednesday, November 13, 2013 2:25 PM
To: Theo de Raadt; Theo de Raadt
Cc: misc@openbsd.org; mlar...@azathoth.net; misc@openbsd.org; 
mlar...@azathoth.net
Subject: Re: QEMU CPU cores not showing up

Sigh, Theo. Seriously I am asking for your help to find out the issue as its 
unique to OpenBSD. Stop ranting away on the demerits of disabling apm (and now 
pci - right! wtf?!).  Like dude, have you never tried variations of anything 
except default bsd kernel? Why is tinkering (and not even permanent - just 
dmesg outputs) considered such an anathema? 

The world didn't collapse by disabling apm and neither did it work. Did I 
mention I tried the GENERIC.MP too? I am sure I did...oh right, a line below...

Look, I am looking for advice from devs like you on why this is happening? 
Please chill, I come in peace for christ sake! Telling me to ask them about AP 
(the only advice so far) is not a good question. 

--
Bruno Delbono
| Cognitive Researcher - Human Behavioural Project Real Sociedad 
| Española De Antropología
| ☎: +1 855 253 5436 ☎: +1 424 354 4700


From: Theo de Raadt dera...@cvs.openbsd.org
Sent: Wednesday, November 13, 2013 5:13 PM
To: Bruno Delbono
Cc: misc@openbsd.org; mlar...@azathoth.net
Subject: Re: QEMU CPU cores not showing up

 As for why completely random disabling apm and acpi...rant by you and Theo...

Bullshit.

Perhaps the solution you are looking for is:

boot -c
 disable pci*

You never know, it just might work.



We are not ranting.  We're telling you that you don't know what the hell you 
are doing, and you are following bad advice.



Re: QEMU CPU cores not showing up

2013-11-13 Thread Janne Johansson
2013/11/13 Bruno Delbono b...@t.gt

  Stop ranting away on the demerits of disabling apm (and now pci - right!
 wtf?!).


He's not. He's rambling about you twisting knobs without having any kind of
clue as to why or how it would have helped, probably based on an outdated
guide which now also don't know why or how it would help.

-- 
May the most significant bit of your life be positive.