login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
15
Re: [PATCH 2/3] xen: add CPU microcode update driver
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Konrad Rzeszutek Wilk
Subject:
Re: [PATCH 2/3] xen: add CPU microcode update driver
Date: Monday, November 15, 2010 - 8:59 am
> +static enum ucode_state xen_request_microcode_user(int cpu,
quoted text
> + const void __user *buf, size_t size) > +{ > + struct ucode_cpu_info *uci = ucode_cpu_info + cpu; > + struct xen_microcode *uc; > + enum ucode_state ret; > + size_t unread; > + > + if (cpu != 0) { > + /* No real firmware for non-zero cpus; just store a > + placeholder */ > + size = 0; > + } > + > + if (uci->mc != NULL) { > + vfree(uci->mc); > + uci->mc = NULL; > + } > + > + ret = UCODE_ERROR; > + uc = vmalloc(sizeof(*uc) + size); > + if (uc == NULL) > + goto out; > + > + uc->len = size; > + > + ret = UCODE_NFOUND; > + > + /* XXX This sporadically returns uncopied bytes, so we return > + EFAULT. As far as I can see, the usermode code
^^^^^ UCODE_NFOUND.
quoted text
> + (microcode_ctl) isn't doing anything wrong... */
Is this still valid? Looking at AMD it checks for a magic key and the Intel just copies without checks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/3] Xen Microcode update driver for 2.6.38
, Jeremy Fitzhardinge
, (Thu Nov 11, 4:58 pm)
[PATCH 1/3] xen dom0: Add support for the platform_ops hyp ...
, Jeremy Fitzhardinge
, (Thu Nov 11, 4:58 pm)
[PATCH 2/3] xen: add CPU microcode update driver
, Jeremy Fitzhardinge
, (Thu Nov 11, 4:58 pm)
[PATCH 3/3] xen/microcode: partially enable even for non-p ...
, Jeremy Fitzhardinge
, (Thu Nov 11, 4:58 pm)
Re: [PATCH 1/3] xen dom0: Add support for the platform_ops ...
, Konrad Rzeszutek Wilk
, (Mon Nov 15, 8:48 am)
Re: [PATCH 2/3] xen: add CPU microcode update driver
, Konrad Rzeszutek Wilk
, (Mon Nov 15, 8:59 am)
Re: [PATCH 3/3] xen/microcode: partially enable even for n ...
, Konrad Rzeszutek Wilk
, (Mon Nov 15, 9:02 am)
Re: [Xen-devel] Re: [PATCH 1/3] xen dom0: Add support for ...
, Jeremy Fitzhardinge
, (Mon Nov 15, 6:14 pm)
Re: [Xen-devel] Re: [PATCH 2/3] xen: add CPU microcode upd ...
, Jeremy Fitzhardinge
, (Mon Nov 15, 6:16 pm)
Re: [Xen-devel] Re: [PATCH 3/3] xen/microcode: partially e ...
, Jeremy Fitzhardinge
, (Mon Nov 15, 6:17 pm)
Re: [Xen-devel] Re: [PATCH 1/3] xen dom0: Add support for ...
, Konrad Rzeszutek Wilk
, (Tue Nov 16, 8:52 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
Michael S. Tsirkin
[PATCH 3/3] vhost: fix get_user_pages_fast error handling
Jeff Garzik
Re: [0/3] POHMELFS high performance network filesystem. First steps in parallel pr...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Colocation donated by:
Syndicate