Bug 513263 - mp_state is defined as int but used as uint32_t
Summary: mp_state is defined as int but used as uint32_t
Keywords:
Status: CLOSED DUPLICATE of bug 515749
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Juan Quintela
QA Contact: Lawrence Lim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-22 18:11 UTC by Juan Quintela
Modified: 2014-03-26 00:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-16 18:28:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
change mp_state type to uint32_t (1.06 KB, patch)
2009-07-22 18:12 UTC, Juan Quintela
no flags Details | Diff

Description Juan Quintela 2009-07-22 18:11:19 UTC
Description of problem:

We use a variable of type int to store a uint32_t variable.
This variable is send through the wire and between kernel/userland.

Analysis:
- kernel declares int mp_state;
- kernel transfers to/from userspace over ioctl _u32 mp_state.
- qemu stores internall int mp_state.
- qemu saves/load during migration uint32_t mp_state.

qemu don't use that variable at all, just save it for migration.
Changing it to uint32_t will make everything working


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Juan Quintela 2009-07-22 18:12:00 UTC
Created attachment 354760 [details]
change mp_state type to uint32_t

Comment 3 Juan Quintela 2009-09-16 18:28:31 UTC

*** This bug has been marked as a duplicate of bug 515749 ***


Note You need to log in before you can comment on or make changes to this bug.