Re: [PATCH 1/2] VMware detection support for x86 and x86-64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: H. Peter Anvin
Date: Wednesday, September 24, 2008 - 10:30 pm

Alok Kataria wrote:

First, you are assuming all devices are "sane".  This is obviously wrong 
-- you're poking in hyperspace, and you don't know if you're going to 
hit someone's ancient controller card that perhaps drives a medical 
accelerator for all you know.

Second, you are assuming that devices you call "sane" don't have I/O 
ports with read side effects.  Many, if not most, devices have some I/O 
ports with read side effects, especially read-clear semantics and/or 
queue drain operations.

Third, in the real world hardware is buggy.  Not just a little, but 
severely so.  Accessing a part of a device which is uninitialized, 
powered down or plain broken can wedge the device or the whole system.

In short, poking at I/O ports which you don't know what they are at best 
takes us bad to the bad old days of ISA probing (without the protection 
of customary address assignments); I think it has to be an absolutely 
last resort and would be reflective of utterly incompetent design.  It 
is significantly *worse* than stealing random opcodes, Virtual PC-style, 
and that is also unacceptable.

	-hpa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] X86: remove WARN_ON if MTRRs are all blank, Joerg Roedel, (Thu Feb 21, 4:32 am)
Re: [PATCH] X86: remove WARN_ON if MTRRs are all blank, Ingo Molnar, (Thu Feb 21, 4:54 am)
Re: [PATCH] X86: remove WARN_ON if MTRRs are all blank, Joerg Roedel, (Thu Feb 21, 5:47 am)
Re: [PATCH] X86: remove WARN_ON if MTRRs are all blank, Ingo Molnar, (Thu Feb 21, 6:03 am)
Re: [PATCH] X86: remove WARN_ON if MTRRs are all blank, Joerg Roedel, (Thu Feb 21, 6:27 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, Cristi Magherusan, (Wed Sep 24, 7:10 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 9:19 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 9:21 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, Cristi Magherusan, (Wed Sep 24, 11:13 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 11:16 am)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 5:26 pm)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 5:37 pm)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, Bernd Eckenfels, (Wed Sep 24, 6:28 pm)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 9:54 pm)
Re: [PATCH 1/2] VMware detection support for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 10:04 pm)
Re: [PATCH 1/2] VMware detection support for x86 and x86-64, H. Peter Anvin, (Wed Sep 24, 10:30 pm)
Re: [PATCH 1/2] VMware guest detection for x86 and x86-64, David Sanders, (Thu Sep 25, 2:56 am)
Re: [PATCH 1/2] VMware detection support for x86 and x86-64, Valdis.Kletnieks, (Fri Sep 26, 5:27 am)
Re: [PATCH 1/2] VMware detection support for x86 and x86-64, Valdis.Kletnieks, (Fri Sep 26, 6:22 am)
Re: [PATCH 1/2] VMware detection support for x86 and x86-64, H. Peter Anvin, (Fri Sep 26, 10:37 am)