commit | 5aacf0ca4128fdeadf91c0ac50271841b643d1fd | [log] [tgz] |
---|---|---|
author | James Morris <jmorris@namei.org> | Fri Dec 22 01:04:55 2006 -0800 |
committer | Linus Torvalds <torvalds@woody.osdl.org> | Fri Dec 22 08:55:45 2006 -0800 |
tree | b951292c844b53d8be8c315419a12c86463f6b7c | |
parent | 5f2a105d5e33a038a717995d2738434f9c25aed2 [diff] |
[PATCH] KVM: add valid_vcpu() helper Consolidate the logic for checking whether a vcpu index is valid. Also, use likely(), as a valid value should be the overwhelmingly common case. Signed-off-by: James Morris <jmorris@namei.org> Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>